Open hydraCy opened 3 months ago
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.
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.
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. Then add all the sub dependencies from SPM or Cocoapods.
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. Then add all the sub dependencies from SPM or Cocoapods.
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.
import Base58_swift
is right
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. Then add all the sub dependencies from SPM or Cocoapods.
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 import Base58_swift
in file.
import Base58_swift
is rightThis 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. Then add all the sub dependencies from SPM or Cocoapods.
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
import Base58_swift
in file.
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?
import
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
.