2015-10-07 137 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

相关问题