1

I am trying to convert my code into Swift 2.0 but I am running into an issue.

Can someone please tell me what this means and how to fix it?

ld: warning: directory not found for option '-F/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.0.sdk/Developer/Library/Frameworks'

ld: -bundle and -bitcode_bundle (Xcode setting ENABLE_BITCODE=YES) cannot be used together clang: error: linker command failed with exit code 1 (use -v to see invocation)

Thanks

Community
  • 1
  • 1
Trip Phillips
  • 430
  • 1
  • 5
  • 18

2 Answers2

2

Switch to project's Build Setting panel, search for BitCode, and set the value of Enable Bitcode to NO

enter image description here

Zigii Wong
  • 7,766
  • 8
  • 51
  • 79
  • Yes but won't this disable me from archiving my app to the App Store? – Trip Phillips Sep 22 '15 at 03:57
  • @TripPhillips [documentation of bitcode in developer library](https://developer.apple.com/library/prerelease/watchos/documentation/IDEs/Conceptual/AppDistributionGuide/AppThinning/AppThinning.html#//apple_ref/doc/uid/TP40012582-CH35-SW2) – Zigii Wong Sep 22 '15 at 04:00
1

Bitcode is the default but optional so you can disable it.

From Bitcode (iOS, watchOS):

Note: For iOS apps, bitcode is the default, but optional. If you provide bitcode, all apps and frameworks in the app bundle need to include bitcode. For watchOS apps, bitcode is required.

zaph
  • 111,848
  • 21
  • 189
  • 228