40

After updating Xcode to version 8.3 I'm getting this error:

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

Bitcode is not even enabled on my project.

How can I fix this?

4
  • Are you using cocoapods? Commented Apr 11, 2017 at 13:06
  • @ParthAdroja yes Commented Apr 11, 2017 at 13:07
  • 1
    stackoverflow.com/questions/43215407/xcode-invalid-bitcode Commented Apr 11, 2017 at 13:28
  • 1
    Check your active architecture only property in project settings. Setting it to YES solved my issue. Commented Oct 23, 2017 at 2:07

3 Answers 3

24

Try some tricks ->

  • Clear derived data & reopen xcode.

  • Select proper sign in / certificate, or try to re add account in xcode

  • Make sure if your pods supported bitcode if not then you need to set bitcode to NO (Go to Project Build setting search for bitcode & set it to NO.

Hope it will helpful:)

Sign up to request clarification or add additional context in comments.

4 Comments

"Clear derived data & reopen xcode." helped me.
Clear derived data works
"Clear derived data & reopen xcode." helped me too! Apparently, only clearing derived data is not enough. You have to close and reopen Xcode. I have many situation where closing and reopening Xcode fix it. What's wrong with Xcode nowadays?
12

There might be the issues with some third party libraries. I have faced such issues a few days earlier and did following things.

  1. Update pod using pod update
  2. Restart Xcode
  3. Clean Project and Build.

If this don't solve the issues please share the podfile so I can know which pods are you using that might cause the problem.

5 Comments

Thanks for the answer, I've followed the steps you've suggested the error is still happening. This is the podfile gist.github.com/odedharth/15634abf3be69e4a0617249ce387cf05
@ParthAdroja what that second part of the Podfile do?
@AnirudhaMahale Sorry I can't understand your question. Can you please elaborate?
@AnirudhaMahale It will apply build settings for pod build configuration in your xcode project.
@ParthAdrojaI I have tried the above steps but didn't solve my issues. Will you help me if I share my pods that I have used? Here are the pods that I have used - 1.Alamofire 2.ReachabilitySwift 3. SwiftyJSON 4.Charts 5.XCGLogger 6.OneSignal
2

Clean and then run the project will help.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.