xcode - invalid bitcode

后端 未结 10 2183
时光取名叫无心
时光取名叫无心 2021-02-15 13:20

I\'m getting this error

error: Invalid bitcode signature

clang: error: linker command failed with exit code 1 (use -v to see invocation)

10条回答
  •  感情败类
    2021-02-15 13:53

    Maybe the issue because of a third party SDK integrated into your project using Cocoapods.

    do the following:

    • Create a new Xcode project
    • Copy the Podfile from your original project to the newly created project's directory
    • Do pod install
    • Remove one or more of the pods⋆
    • Archive the new project, and see if it succeeds, if not repeat step 4 till you are able to archive.

      (you can also try something like binary search, wherein you delete the first half pods in your Podfile and see if the new project archives)

    Once you've figured out the library causing the issue, keep downgrading the library by explicitly specifying the version in Podfile, until the project archives successfully.

    Or if you don't mind disabling bitcode: Go to build settings search bitcode and change "Enable Bitcode" to "No".

提交回复
热议问题