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

后端 未结 6 1751
遥遥无期
遥遥无期 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:23

    This could also happen if you have two different Xcode versions installed side by side and then building with one that points to wrong command line tools. I experienced this problem after installing Xcode 10.1 next to (updated) Xcode 10.2. My Xcode 10.1 was pointing to Xcode 10.2 command line tools, so linking failed with invalid bitcode version, same as in your case. The fix was:

    • Change Command Line Tools in Xcode Preferences -> Locations -> Command Line Tools:

    • Clean build folder and hit Archive.

    The above is also valid for other Xcode versions.

提交回复
热议问题