2015-09-22 53 views
1

我想将我的代码转换为Swift 2.0,但我遇到了问题。将我的Swift代码转换为Swift 2.0问题

有人可以告诉我这是什么意思,以及如何解决它?

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)

感谢

回答

2

切换到项目的Build Setting面板,搜索BitCode,和Enable Bitcode值设置为NO

enter image description here

+0

是的,但不会禁止这从我的归档我的应用程序在App Store? –

+0

@TripPhillips [开发者库中的位码文档](https://developer.apple.com/library/prerelease/watchos/documentation/IDEs/Conceptual/AppDistributionGuide/AppThinning/AppThinning.html#//apple_ref/doc/uid/ TP40012582-CH35-SW2) –

1

位码是默认的,但可选的,所以你可以禁用它。

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.