Git Product home page Git Product logo

Comments (32)

SunZhiC avatar SunZhiC commented on September 12, 2024
  1. 是否配置了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
  1. 目前不支持x86_64(inter)模拟器,你使用真机或者arm64(M1 or M2)试试

from particle-flutter.

Toketec avatar Toketec commented on September 12, 2024

我的pod内容如下:
image

并且使用的是M2max芯片的mac电脑

from particle-flutter.

SunZhiC avatar SunZhiC commented on September 12, 2024

你可以注释这行吗?

# use_modular_headers!

from particle-flutter.

Toketec avatar Toketec commented on September 12, 2024

已经注释了,依然是这样❤️。。

from particle-flutter.

SunZhiC avatar SunZhiC commented on September 12, 2024

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.

Toketec avatar Toketec commented on September 12, 2024

感谢,我来试一下,稍后回复情况❤️

from particle-flutter.

Toketec avatar Toketec commented on September 12, 2024

@SunZhiC 清理了所有缓存,cocoa、pub、xcode,并使用本项目直接运行,依然包相同的错误,请问是否对flutter版本有要求?
ParticleAuthService 版本号1.0.1和1.0.2都试过了,都是一样的错误,并且把本项目的依赖从上级项目依赖换成particle_auth: ^1.0.4后依然报错
image
指向的问题是
image
这个不存在

from particle-flutter.

Toketec avatar Toketec commented on September 12, 2024

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.

SunZhiC avatar SunZhiC commented on September 12, 2024

你可以上传一个仓库,我实际看看吗,我觉得对flutter版本应该没要求

from particle-flutter.

Toketec avatar Toketec commented on September 12, 2024

我使用的就是本仓库的代码,请问贵公司目前使用的开发环境版本是多少,我来试一下,感谢

from particle-flutter.

SunZhiC avatar SunZhiC commented on September 12, 2024

我开发的时候,使用的就是这个example, 开发环境应该在https://github.com/Particle-Network/particle-flutter/blob/master/particle-auth/example/pubspec.yaml 这个文件里面了。
你可以试试直接使用Xcode打开iOS项目试试吗,Xcode要求是 >= 14.1。
如果你可以自建一个仓库,上传你无法运行的demo,我们可以直接看。

from particle-flutter.

Toketec avatar Toketec commented on September 12, 2024

@SunZhiC flutter的开发环境是多少呀,我也复刻一下,试了一天差点放弃了。。。🙏🏻

from particle-flutter.

SunZhiC avatar SunZhiC commented on September 12, 2024

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 avatar SunZhiC commented on September 12, 2024

@SunZhiC 清理了所有缓存,cocoa、pub、xcode,并使用本项目直接运行,依然包相同的错误,请问是否对flutter版本有要求? ParticleAuthService 版本号1.0.1和1.0.2都试过了,都是一样的错误,并且把本项目的依赖从上级项目依赖换成particle_auth: ^1.0.4后依然报错 image 指向的问题是 image 这个不存在

你的报错,我认为不是flutter的原因,是Xcode cocoapods等配置的原因,应该是执行pod install 后项目没有正确的配置导致的。你可以打开Xcode查看你项目中Pods列表下的各个子依赖的包是不是这样的。
image
图标是否是黄色公文包💼和红色靶子🎯。

from particle-flutter.

Toketec avatar Toketec commented on September 12, 2024

1、因为最新版的代码在安装pod时报错
image
所以我先删除了 ∫ 字符进行pod install
安装结果如下:
image
image
2、紧接着我就打开main.dart运行debug,使用的是iPhone14pro(arm)模拟器
得到了报错:
image

from particle-flutter.

SunZhiC avatar SunZhiC commented on September 12, 2024

好的,我现在升级到最新的flutter版本试一下。

from particle-flutter.

Toketec avatar Toketec commented on September 12, 2024

@SunZhiC 对了我的cocoapod版本是1.12.1

from particle-flutter.

Toketec avatar Toketec commented on September 12, 2024

@SunZhiC
可以吗?不可以的话准备含泪换一家了。。

from particle-flutter.

SunZhiC avatar SunZhiC commented on September 12, 2024

升级之后测试,使用真机可以,使用模拟器也遇到报错,正在排查模拟器的原因,你可以先使用真机开发。

from particle-flutter.

SunZhiC avatar SunZhiC commented on September 12, 2024

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.

Toketec avatar Toketec commented on September 12, 2024

好的,这个3.4版本的似乎是一个特殊版本,在官网已经没有下载地址,只有3.3、3.7、3.10,不过这三个版本都试过了,都是报一样的缺依赖问题。

from particle-flutter.

SunZhiC avatar SunZhiC commented on September 12, 2024

image
这个地方设置成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.

varunlohade avatar varunlohade commented on September 12, 2024

@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.

SunZhiC avatar SunZhiC commented on September 12, 2024

@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.

varunlohade avatar varunlohade commented on September 12, 2024

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

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.

SunZhiC avatar SunZhiC commented on September 12, 2024

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

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.

varunlohade avatar varunlohade commented on September 12, 2024

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

I tried running particle-connect/example but I am getting this error
Screenshot 2023-10-11 at 5 06 04 PM

from particle-flutter.

SunZhiC avatar SunZhiC commented on September 12, 2024

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 I tried running particle-connect/example but I am getting this error Screenshot 2023-10-11 at 5 06 04 PM
  1. Swift version should >= 5.7.2
  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'
  1. The logging library and swift-log error is not from our SDK.
  2. 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.

varunlohade avatar varunlohade commented on September 12, 2024

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

but I found this issue now.

from particle-flutter.

SunZhiC avatar SunZhiC commented on September 12, 2024

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 but I found this issue now.
  1. The secp256k1 is not our sub modules, you can explore Podfile.lock, find out which module dependents secp256k1.

from particle-flutter.

lpylpyleo avatar lpylpyleo commented on September 12, 2024

升级之后测试,使用真机可以,使用模拟器也遇到报错,正在排查模拟器的原因,你可以先使用真机开发。

问题依然存在,最新版flutter,XCode, flutter particle SDK

这个issue应该open

from particle-flutter.

SunZhiC avatar SunZhiC commented on September 12, 2024

image 这个地方设置成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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.