6

compile error after update xcode7.1.1

xcrun: error: unable to find utility "bitcode_strip", not a developer tool or in PATH

*** error: Couldn't copy and strip bitcode /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/libswiftCore.dylib to /Users/sungrow/Library/Developer/Xcode/DerivedData/iSolarCloud-dwdjvlyodazrbjayoqquublxncwp/Build/Products/Debug-iphoneos/iSolarCloud.app/Frameworks/libswiftCore.dylib: bitcode_strip failed with exit code 72

Derek
  • 61
  • 1
  • 3
  • can you elaborate it more? – Sindhoo Oad Nov 13 '15 at 03:34
  • 1
    I have setting as https://forums.developer.apple.com/thread/12443,it still didn't work on phone, but on simulator is normal. – Derek Nov 13 '15 at 07:40
  • 1
    Setting STRIP_BITCODE_FROM_COPIED_FILES=NO did not solve my problem. Also note that this problem only appears for "Swift Mac App". Every thing else is working fine This problem is only for my login. I tried creating new user and every thing was working fine – Kaunteya Nov 27 '15 at 07:48
  • Any advancements made here? Same issue on my side - everything else working fine in software simulator – AirUp Dec 03 '15 at 06:39

2 Answers2

2

Sometimes the reason isn't building it with bitcode enabled.There may be something wrong with Xcode.You can try:

  1. Clear derived data(Include Product->Clean).
  2. Restart Xcode.

PS:My answer of how to clear derived data:

How to "Delete derived data" in Xcode6?

If it helps, please vote it up.I need enough reputations to post image...

Community
  • 1
  • 1
hstdt
  • 5,652
  • 2
  • 34
  • 34
0

I think the solution is to deactivate BTICODE for Debug configuration. Go to 'Build Settings', search for 'ENABLE_BITCODE', drill down this option, and select 'NO' for Debug.

i89
  • 1,092
  • 8
  • 11