-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Alamofire Crash #9
Comments
post_install do |installer|
installer.pods_project.targets.each do |target|
if target.name == 'Alamofire'
target.remove_from_project
end
end
end 2.Or remove Alamofire from SPM. |
When I remove Alamofire, RxAlamofire encounters errors, and since Alamofire is also a dependency for other libraries in SPM, I cannot remove it. |
Okey,you can try remove Alamofire in Podfile. |
This is a very strange phenomenon. If I remove the dependencies of Particle, such as Alamofire and SwiftyJSON, Cocoapods will throw errors during compilation because it is not compatible with SPM. But why does calling certain methods from ParticleAuth cause it to reference libraries from SPM? I cannot remove the duplicate dependencies from Pods because it will cause compilation errors in Particle. |
Looks like above solution will not remove Alamofire from pod, so you have to add Particle SDK manually, you can get all the xcframeworks from the Demo project, then put the Particle SDKs that you need into your project. |
I tried to integrate using xcframeworks, but I encountered a problem. When I include the library with .package(url: "https://github.com/SunZhiC/Base58Swift", from: "1.0.0"), the xcframeworks use import Base58_swift instead of import Base58Swift, causing the xcframeworks to fail to compile. |
Try again, I had updated this package "https://github.com/SunZhiC/Base58Swift", import from SPM, should use |
I have imported TweetNacl through https://github.com/bitmark-inc/tweetnacl-swiftwrap. Why is the system reporting 'Missing required module 'CTweetNacl''? Is the library I imported correct? |
Try import TweetNacl through cocoapods, I haven't tried import it from SPM. |
In my project, I use Swift Package Manager (SPM) to include Alamofire. Since Particle uses CocoaPods and also depends on Alamofire, when I call the
auth.connect
method, it causes a crash in Alamofire'spublic init(url: URLConvertible, method: HTTPMethod, headers: HTTPHeaders? = nil)
method with the errorThread 7: EXC_BAD_ACCESS (code=1, address=0x20)
, due tomethod
beingunable to read data
.The text was updated successfully, but these errors were encountered: