skip to Main Content

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


  1. Install ffi

    sudo arch -x86_64 gem install ffi
    

    Re-install dependency

    arch -x86_64 pod install
    arch -x86_64 pod update
    

    Follow the thread for more information

    Login or Signup to reply.
  2. 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

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search