xcode - invalid bitcode

后端 未结 10 2168
时光取名叫无心
时光取名叫无心 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:36

    For me it helped to "update project to recommended settings" and clean, credits to Rocksaurus: https://stackoverflow.com/a/47336130/1884907

    0 讨论(0)
  • 2021-02-15 13:42

    Using pod deintegrate and pod install again resolved my problem. It might be helpful to other who have this question.

    0 讨论(0)
  • 2021-02-15 13:46

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

    Note: If you are building for the target phone 9 or 10 the following solution solves the issue

    Solution

    1. Open Podfile
    2. Uncomment this line ~> platform :ios, '9.0'
    3. From the command line run the following command where Podfile resides
    4. pod update
    5. In the xcode select Product > clean and then Product > Build

    Hope this solves the problem

    0 讨论(0)
  • 2021-02-15 13:49

    If you have a static library (ends with .a), It's possible that its bitcode settings is not agreeing to your workspace / project.

    0 讨论(0)
  • 2021-02-15 13:50

    I got the same error after doing a pod update - restarting Xcode did the trick for me.

    0 讨论(0)
  • 2021-02-15 13:53

    In my project I fixed this by setting all "Bitcode enabled" options to "No". That includes all targets and all projects in the workspace (main project, Cocoa Pod project).

    0 讨论(0)
提交回复
热议问题