'Invalid bitcode version (Producer: '902.0.39.2_0' Reader: '900.0.37_0')'

后端 未结 6 1775
遥遥无期
遥遥无期 2021-02-18 19:07

I\'m using Xcode 9.0.

My pod file:

pod \'Alamofire\', \'~> 4.3\'
pod \'SwiftyJSON\'
pod \'AlamofireSwiftyJSON\'
pod          


        
6条回答
  •  野的像风
    2021-02-18 19:22

    As Rivera said, some libraries you use expect Xcode 10 (probably Firebase). So the workaround is to downgrade versions of your libraries. For me those versions works well with Xcode 9 and bitcode enabled option:

      pod 'Firebase/Core', '~> 4.13.0'
      pod 'Fabric', '~> 1.7.0'
      pod 'Crashlytics', '~> 3.9.0'
    

    Probably you should also investigate which old version of Firebase/Messaging to use.

    BTW, that is one of the reasons why developers should avoid using pods without specifying the specific version (which will lead to always download the latest versions of pods). It also may lead to version incompotability with your code which is using pod features.

提交回复
热议问题