Xcode 7:链接器命令再次失败,退出代码为 1(使用 -v 查看调用)
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/32623130/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Xcode 7: linker command failed with exit code 1 (use -v to see invocation) again
提问by Thiago Arreguy
Im testing my app on iOS simulator of Xcode 7 and its all right o, but when i try test in my iOSDevice (a iPhone 5S with iOS 9). I updated the xcode 7 and iOS9 today (09/16/2015) and before that with iOS 8.4 was working fine.
我在 Xcode 7 的 iOS 模拟器上测试我的应用程序,它没问题,但是当我尝试在我的 iOSDevice(带有 iOS 9 的 iPhone 5S)中测试时。我今天(2015 年 9 月 16 日)更新了 xcode 7 和 iOS9,在此之前,iOS 8.4 运行良好。
OBS: The iOS Deployment target on Xcode project is iOS 9.
OBS:Xcode 项目的 iOS 部署目标是 iOS 9。
I already try this: http://twobitlabs.com/2011/06/adding-ocunit-to-an-existing-ios-project-with-xcode-4/like suggested in this post: clang: error: linker command failed with exit code 1 (use -v to see invocation) when doing unit test on xcodebut doesn't work.
我已经尝试过这个:http: //twobitlabs.com/2011/06/adding-ocunit-to-an-existing-ios-project-with-xcode-4/就像这篇文章中建议的那样: clang: error: linker command failed使用退出代码 1(使用 -v 查看调用)在 xcode 上进行单元测试但不起作用。
The guy of this post, just created a new project: xCode 7: linker command failed with exit code 1 (use -v to see invocation)But is not a solution to me, because my project is huge.
这篇文章的人,刚刚创建了一个新项目: xCode 7:链接器命令失败,退出代码为 1(使用 -v 查看调用)但这对我来说不是解决方案,因为我的项目很大。
回答by Ka Wing Tam Tkw
To solve this problem:
要解决这个问题:
- Go to your project setting page
- Select your project (left side)
- Click the "Build Settings" tab
- Search "Bitcode"
- Set "Enable Bitcode" to "No"
- 转到您的项目设置页面
- 选择您的项目(左侧)
- 单击“构建设置”选项卡
- 搜索“比特码”
- 将“启用位码”设置为“否”
回答by Vinod Joshi
My problem solved by select device instead of simulator to install the app. as libs i was using not support the linker for simulator.
我的问题是通过选择设备而不是模拟器来安装应用程序来解决的。因为我使用的库不支持模拟器的链接器。