Comments (32)
- 是否配置了Podfile 需要添加一个声明 https://docs.particle.network/developers/auth-service/sdks/flutter 中3.8.
post_install do |installer|
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings['BUILD_LIBRARY_FOR_DISTRIBUTION'] = 'YES'
end
end
end
- 目前不支持x86_64(inter)模拟器,你使用真机或者arm64(M1 or M2)试试
from particle-flutter.
并且使用的是M2max芯片的mac电脑
from particle-flutter.
你可以注释这行吗?
# use_modular_headers!
from particle-flutter.
已经注释了,依然是这样❤️。。
from particle-flutter.
1.你有删除Podfile.lock ,Pods文件夹和Xcode缓存吗? 然后重新执行的pod install 吗
2.https://github.com/Particle-Network/particle-flutter/blob/master/particle-auth/example/ios/Podfile 比较这个Podfile,跟你的应该基本一致了,你目前实际安装到的ParticleNetworkBase 和ParticleAuthService 版本号吗是1.0.2吗
from particle-flutter.
感谢,我来试一下,稍后回复情况❤️
from particle-flutter.
@SunZhiC 清理了所有缓存,cocoa、pub、xcode,并使用本项目直接运行,依然包相同的错误,请问是否对flutter版本有要求?
ParticleAuthService 版本号1.0.1和1.0.2都试过了,都是一样的错误,并且把本项目的依赖从上级项目依赖换成particle_auth: ^1.0.4后依然报错
指向的问题是
这个不存在
from particle-flutter.
Flutter 3.10.6 • channel stable • https://github.com/flutter/flutter.git
Framework • revision f468f3366c (4 weeks ago) • 2023-07-12 15:19:05 -0700
Engine • revision cdbeda788a
Tools • Dart 3.0.6 • DevTools 2.23.1
from particle-flutter.
你可以上传一个仓库,我实际看看吗,我觉得对flutter版本应该没要求
from particle-flutter.
我使用的就是本仓库的代码,请问贵公司目前使用的开发环境版本是多少,我来试一下,感谢
from particle-flutter.
我开发的时候,使用的就是这个example, 开发环境应该在https://github.com/Particle-Network/particle-flutter/blob/master/particle-auth/example/pubspec.yaml 这个文件里面了。
你可以试试直接使用Xcode打开iOS项目试试吗,Xcode要求是 >= 14.1。
如果你可以自建一个仓库,上传你无法运行的demo,我们可以直接看。
from particle-flutter.
@SunZhiC flutter的开发环境是多少呀,我也复刻一下,试了一天差点放弃了。。。🙏🏻
from particle-flutter.
Flutter 3.4.0-34.1.pre • channel beta • https://github.com/flutter/flutter.git
Framework • revision 71520442d4 (10 months ago) • 2022-10-05 16:38:28 -0500
Engine • revision db0cbb2145
Tools • Dart 2.19.0 (build 2.19.0-255.2.beta) • DevTools 2.18.0
from particle-flutter.
@SunZhiC 清理了所有缓存,cocoa、pub、xcode,并使用本项目直接运行,依然包相同的错误,请问是否对flutter版本有要求? ParticleAuthService 版本号1.0.1和1.0.2都试过了,都是一样的错误,并且把本项目的依赖从上级项目依赖换成particle_auth: ^1.0.4后依然报错
指向的问题是
这个不存在
你的报错,我认为不是flutter的原因,是Xcode cocoapods等配置的原因,应该是执行pod install 后项目没有正确的配置导致的。你可以打开Xcode查看你项目中Pods列表下的各个子依赖的包是不是这样的。
图标是否是黄色公文包💼和红色靶子🎯。
from particle-flutter.
1、因为最新版的代码在安装pod时报错
所以我先删除了 ∫ 字符进行pod install
安装结果如下:
2、紧接着我就打开main.dart运行debug,使用的是iPhone14pro(arm)模拟器
得到了报错:
from particle-flutter.
好的,我现在升级到最新的flutter版本试一下。
from particle-flutter.
@SunZhiC 对了我的cocoapod版本是1.12.1
from particle-flutter.
@SunZhiC
可以吗?不可以的话准备含泪换一家了。。
from particle-flutter.
升级之后测试,使用真机可以,使用模拟器也遇到报错,正在排查模拟器的原因,你可以先使用真机开发。
from particle-flutter.
Flutter 3.4.0-34.1.pre • channel beta • https://github.com/flutter/flutter.git Framework • revision 71520442d4 (10 months ago) • 2022-10-05 16:38:28 -0500 Engine • revision db0cbb2145 Tools • Dart 2.19.0 (build 2.19.0-255.2.beta) • DevTools 2.18.0
回退到这个flutter版本测试模拟器是可行的。
你可以暂时回退到这个版本使用模拟器测试,或者版本不变直接使用真机测试。
cd 到你flutter目录
git checkout 3.4.0-34.1.pre
之后,我再研究下如何在3.10.6上模拟器运行,目前没找到原因。
from particle-flutter.
好的,这个3.4版本的似乎是一个特殊版本,在官网已经没有下载地址,只有3.3、3.7、3.10,不过这三个版本都试过了,都是报一样的缺依赖问题。
from particle-flutter.
这个地方设置成arm64, 然后清空Pods文件夹和Podfile.lock 重新跑一下就好了,模拟器可以运行了。
使用如下版本
Flutter 3.13.0 • channel stable • https://github.com/flutter/flutter.git
Framework • revision efbf63d9c6 (5 days ago) • 2023-08-15 21:05:06 -0500
Engine • revision 1ac611c64e
Tools • Dart 3.1.0 • DevTools 2.25.0
from particle-flutter.
@SunZhiC I am getting the same issue and I did all the steps you have mentioned
Podfile
`
platform :ios, '14.0'
ENV['COCOAPODS_DISABLE_STATS'] = 'true'
project 'Runner', {
'Debug' => :debug,
'Profile' => :release,
'Release' => :release,
}
def flutter_root
generated_xcode_build_settings_path = File.expand_path(File.join('..', 'Flutter', 'Generated.xcconfig'), FILE)
unless File.exist?(generated_xcode_build_settings_path)
raise "#{generated_xcode_build_settings_path} must exist. If you're running pod install manually, make sure flutter pub get is executed first"
end
File.foreach(generated_xcode_build_settings_path) do |line|
matches = line.match(/FLUTTER_ROOT=(.*)/)
return matches[1].strip if matches
end
raise "FLUTTER_ROOT not found in #{generated_xcode_build_settings_path}. Try deleting Generated.xcconfig, then run flutter pub get"
end
require File.expand_path(File.join('packages', 'flutter_tools', 'bin', 'podhelper'), flutter_root)
flutter_ios_podfile_setup
target 'Runner' do
use_frameworks! :linkage => :static
pod 'ParticleNetworkBase', '1.0.6'
pod 'ParticleAuthService', '1.0.6'
pod 'ParticleBiconomy', '1.0.6'
pod 'ParticleConnect', '0.2.9'
pod 'ConnectWalletConnectAdapter', '0.2.9'
pod 'ConnectSolanaAdapter', '0.2.9'
pod 'ConnectEVMAdapter', '0.2.9'
pod 'ConnectCommon', '0.2.9'
pod 'ConnectPhantomAdapter', '0.2.9'
flutter_install_all_ios_pods File.dirname(File.realpath(FILE))
end
post_install do |installer|
installer.pods_project.targets.each do |target|
flutter_additional_ios_build_settings(target)
end
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings['BUILD_LIBRARY_FOR_DISTRIBUTION'] = 'YES'
end
end
end
`
from particle-flutter.
@varunlohade our SDK doesn't support x86_64 simulator, did you run with a real iPhone or macbook M1/M2 ?
Did you set Architectures to arm64
then remove all xcode caches, Pods and Podfile.lock, rerun pod install
?
from particle-flutter.
Hey @SunZhiC I have tried this but now i am facing
this issue
I am running on iPhone 14
![Screenshot 2023-10-09 at 5 10 24 PM](https://private-user-images.githubusercontent.com/50517140/273574254-2d04390a-26c5-405f-b623-1d6278d5cec1.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjYxNDQ1OTUsIm5iZiI6MTcyNjE0NDI5NSwicGF0aCI6Ii81MDUxNzE0MC8yNzM1NzQyNTQtMmQwNDM5MGEtMjZjNS00MDVmLWI2MjMtMWQ2Mjc4ZDVjZWMxLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA5MTIlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwOTEyVDEyMzEzNVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTA2NjVkOWU2MjRhMTQ2MzM2OGMyOTRhODUwNmVkMWNhYjFmZTIyMTJhZWY1NDhmM2QzM2ZhNTdkYWIxZGFlODAmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.Qd7bryx0vvc4W-yxWcDlTkVufGQ3ddrKdR_H6_W9pSA)
pod 'ParticleNetworkBase', '1.0.6'
pod 'ParticleAuthService', '1.0.6'
pod 'ParticleBiconomy', '1.0.6'
pod 'ParticleConnect', '0.2.9'
pod 'ConnectWalletConnectAdapter', '0.2.9'
pod 'ConnectEVMAdapter', '0.2.9'
pod 'ConnectCommon', '0.2.9'
from particle-flutter.
Hey @SunZhiC I have tried this but now i am facing
this issue
I am running on iPhone 14
![]()
pod 'ParticleNetworkBase', '1.0.6'
pod 'ParticleAuthService', '1.0.6'
pod 'ParticleBiconomy', '1.0.6'
pod 'ParticleConnect', '0.2.9'
pod 'ConnectWalletConnectAdapter', '0.2.9'
pod 'ConnectEVMAdapter', '0.2.9'
pod 'ConnectCommon', '0.2.9'
Hi, what is your Xcode version number? Can you provide more details about the error message? Can you try the example project which is under particle-connect/example?
from particle-flutter.
Hi, I am on Xcode 14.3
I have tried running the project for Swift toolchain 5.3, 5.5.3 and 5.7 as well.
I fixed most of the issues but now I am getting this error, not sure how to fix this.
![Screenshot 2023-10-11 at 4 05 52 PM](https://private-user-images.githubusercontent.com/50517140/274235788-857fd754-5d2e-4265-b75d-74ed87bb576e.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjYxNDQ1OTQsIm5iZiI6MTcyNjE0NDI5NCwicGF0aCI6Ii81MDUxNzE0MC8yNzQyMzU3ODgtODU3ZmQ3NTQtNWQyZS00MjY1LWI3NWQtNzRlZDg3YmI1NzZlLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA5MTIlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwOTEyVDEyMzEzNFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWFhM2ExYzZmMjk1NGM5NTRhNmM4Y2Q4ZWY1NmU5NDU2ODViYTU4YmFlOGVjZGE0ZmM0ZTBjNGZmOTAzZWYxNDEmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.xtWQ0QHishAqCDRsANbaVfHw5TzF4HtkA1Mxx0dQNr4)
I tried running particle-connect/example but I am getting this error
from particle-flutter.
Hi, I am on Xcode 14.3 I have tried running the project for Swift toolchain 5.3, 5.5.3 and 5.7 as well. I fixed most of the issues but now I am getting this error, not sure how to fix this.
I tried running particle-connect/example but I am getting this error
![]()
- Swift version should >= 5.7.2
- add full pods, here is the list for flutter particle_wallet
pod 'ParticleConnect', '0.2.9'
pod 'ConnectWalletConnectAdapter', '0.2.9'
pod 'ConnectSolanaAdapter', '0.2.9'
pod 'ConnectEVMAdapter', '0.2.9'
pod 'ConnectCommon', '0.2.9'
pod 'ConnectPhantomAdapter', '0.2.9'
pod 'ParticleAuthAdapter', '0.2.9'
pod 'ParticleNetworkBase', '1.0.6'
pod 'ParticleAuthService', '1.0.6'
pod 'ParticleWalletGUI', '1.0.6'
pod 'ParticleWalletAPI', '1.0.6'
pod 'ParticleWalletConnect', '1.0.6'
pod 'ParticleBiconomy', '1.0.6'
pod 'SkeletonView', :git => 'https://github.com/SunZhiC/SkeletonView.git', :branch => 'main'
pod 'SwiftMessages', :git => 'https://github.com/SunZhiC/SwiftMessages', :branch => 'master'
- The logging library and swift-log error is not from our SDK.
- particle-connect example doesn't contains particle-wallet-connect, why you encounter this error? here is the link of particle-connect https://github.com/Particle-Network/particle-flutter/tree/master/particle-connect
from particle-flutter.
Hey the errors for logging library and swift-log are now gone,
I am on Swift version 5.7.2
![Screenshot 2023-10-11 at 9 10 15 PM](https://private-user-images.githubusercontent.com/50517140/274336161-699e92b7-4564-4976-a528-e464e1c979f1.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjYxNDQ1OTQsIm5iZiI6MTcyNjE0NDI5NCwicGF0aCI6Ii81MDUxNzE0MC8yNzQzMzYxNjEtNjk5ZTkyYjctNDU2NC00OTc2LWE1MjgtZTQ2NGUxYzk3OWYxLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA5MTIlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwOTEyVDEyMzEzNFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTk2MTI0NWU2MGNiODkyMjE2MTgyYmM4N2IwOTNmYjUyMWQxZThlM2Y1OWQ2NTJkZTU0OTkwZmY0OWQ1NjUwMmMmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.Pnq40IT-RWi26goD_htLgZ8ZUw8kapPQ-3U_SUwvn8c)
but I found this issue now.
from particle-flutter.
Hey the errors for logging library and swift-log are now gone, I am on Swift version 5.7.2
but I found this issue now.
- The secp256k1 is not our sub modules, you can explore Podfile.lock, find out which module dependents secp256k1.
from particle-flutter.
升级之后测试,使用真机可以,使用模拟器也遇到报错,正在排查模拟器的原因,你可以先使用真机开发。
问题依然存在,最新版flutter,XCode, flutter particle SDK
这个issue应该open
from particle-flutter.
这个地方设置成arm64, 然后清空Pods文件夹和Podfile.lock 重新跑一下就好了,模拟器可以运行了。 使用如下版本
Flutter 3.13.0 • channel stable • https://github.com/flutter/flutter.git Framework • revision efbf63d9c6 (5 days ago) • 2023-08-15 21:05:06 -0500 Engine • revision 1ac611c64e Tools • Dart 3.1.0 • DevTools 2.25.0
@lpylpyleo 使用这个方法试一下,这个是可以解决模拟器运行的,仅限M1/M2的mac机型,不支持x86_64 芯片。
from particle-flutter.
Related Issues (18)
- App crashes on Biconomy init HOT 4
- `particle_wallet` running failed in debug mode. HOT 2
- `particle_connect`: `ParticleConnect.importPrivateKey` method call error. HOT 1
- Can Flutter Web be supported? HOT 1
- navigatorDappBrowser is missing on Android HOT 1
- App crashed after call `ParticleWallet.navigatorDappBrowser` HOT 3
- Can not run in the IOS platform HOT 12
- [Particle Connect] can not connect the metaMask wallet HOT 4
- Missing argument for parameter 'redirectUniversalLink' in call when build iOS project HOT 1
- Can we support coinbase wallet in Flutter SDK? HOT 1
- Can we have a wallet widget in Flutter SDK? HOT 1
- Build error when run wallet flutter sdk 1.4.12 on iOS device. HOT 3
- 使用Particle Auth登录成功后,ios设备提示 Safari 浏览器打不开网页,因为网址无效 HOT 2
- Unable to build the iOS app after adding particle-aa HOT 3
- Library 'thresh_sig_wasm' not found HOT 1
- Picture in Picture issue HOT 5
- ParticleBase.setChainInfo is not working for custom network HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from particle-flutter.