I know that its been 2 years, but I’ve tried to install some package dependencies, they weren’t working with SPM for some reason. I get this error:
in /Users/***/Desktop/Quick-Chat/Pods/FirebaseAnalytics/Frameworks/FIRAnalyticsConnector.framework/FIRAnalyticsConnector(FIRConnectorUtils_846058ed7a2963be49dce7d04c860170.o), building for iOS Simulator, but linking in object file built for iOS, file '/Users/anishrangdal/Desktop/Quick-Chat/Pods/FirebaseAnalytics/Frameworks/FIRAnalyticsConnector.framework/FIRAnalyticsConnector' for architecture arm64
I know it has something to do with me being on an m1 chip, so maybe I cannot use Cocoapods?
Here is the Podfile file that I am using:
pod 'Firebase/Core'
pod 'Firebase/Auth'
pod 'Firebase/Storage'
pod 'Kingfisher'
pod 'Firebase/Firestore'
pod 'ALLoadingView'
2
Answers
Install ffi
Re-install dependency
Follow the thread for more information
You should update all Firebase pod to the xcframework version (or latest), then it will have support for simulator in M1 machine. Simulator in M1 will require additional slice in order to run.
More info: https://firebase.google.com/support/release-notes/ios