6

以下链接器命令会导致以下错误。这是为 XCode for iOS 中的模拟器目标构建的。目前还不清楚是什么通过 XCode 提供了 Xlinker 参数。关于我如何在这里寻求解决方案的任何想法?

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool -static -arch_only i386 -syslibroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/ iPhoneSimulator7.1.sdk -Xlinker -sectcreate -Xlinker __TEXT -Xlinker __entitlements -o libxxx.a

错误:/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool:未知选项字符“X”在:-Xlinker

(注意:这个错误似乎突然发生。同一个项目文件几天前正在构建中)。

4

1 回答 1

0

尝试添加use_frameworks!到您的 Podfile 并运行pod install.

那应该可以解决问题。

于 2015-03-23T18:14:11.630 回答