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?

rmaddy
  • 298,130
  • 40
  • 468
  • 517
Oded Harth
  • 4,204
  • 8
  • 33
  • 57

3 Answers3

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:)

Jack
  • 10,795
  • 4
  • 65
  • 90
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.

Parth Adroja
  • 11,417
  • 5
  • 35
  • 65
  • Thanks for the answer, I've followed the steps you've suggested the error is still happening. This is the podfile https://gist.github.com/odedharth/15634abf3be69e4a0617249ce387cf05 – Oded Harth Apr 11 '17 at 15:59
  • @ParthAdroja what that second part of the Podfile do? – Anirudha Mahale Aug 30 '17 at 14:05
  • @AnirudhaMahale Sorry I can't understand your question. Can you please elaborate? – Parth Adroja Aug 30 '17 at 15:31
  • @AnirudhaMahale It will apply build settings for pod build configuration in your xcode project. – Parth Adroja Sep 02 '17 at 17:45
  • @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 – Saurabh Aug 20 '18 at 08:47
2

Clean and then run the project will help.

Anuraj
  • 1,204
  • 8
  • 24