2015-10-07 180 views
0

昨天我將MacBook Pro更新爲El Capitan。我有Xcode 6.1由於更新Xcode不會打開Xcode 6.1但我被迫下載Xcode 7.0.1我不想升級,但我被迫。我用Objective-C創建了我的應用程序。將其提交給蘋果公司,它目前是「正在等待開發者發佈」。Xcode 7.0.1導致鏈接器命令失敗,退出代碼1錯誤

我想改變一些東西,但現在無處跟Xcode 7.0.1我收到一個錯誤,我從來沒有收到Xcode 6.1

ld: '/Users/markjak/Desktop/Stick Down copy/Leap Up/LibAdapterIAd- 1.0.0/libAdapterIAd.a(GADMAdapterIAdInterstitial.o)' does not contain bitcode. You must rebuild it with bitcode enabled (Xcode setting ENABLE_BITCODE), obtain an updated library from the vendor, or disable bitcode for this target. for architecture armv7 
clang: error: linker command failed with exit code 1 (use -v to see invocation) 

我該如何做Xcode 7.0.1要我做的事情?

回答

6

剛剛從生成設置

enter image description here

禁用位碼因爲你的庫不支持位碼。

Apple documentation reference位碼。

+0

謝謝你,你有救了我。我會給你最好的答案,當StackOverflow允許我。 – HELLO

+0

但是如果我需要啓用位碼呢?如果沒有啓用bitcode,我無法在存檔上傳後從iTunes Connect獲取dSYM文件。而且Xcode不會讓我從窗口管理器下載dSYMs文件,它只是說「沒有可用於此版本的dSYM文件...」,這使我無法獲取dSYM文件並使用它來表示崩潰報告。 .. – MikeG

0

您的錯誤清楚地表明您的庫(libAdapterIAd)不支持bitcode 在xcode7 +中,bitcode is enabled by default。所以你只需要通過以下步驟禁用它: -

  1. 點擊目標構建設置。
  2. 搜索bitocde。
  3. 設置No啓用位碼

enter image description here

相關問題