链接错误:未知选项字符“X”在:-Xlinker

以下链接器命令导致下面的错误。 这是build立在Xcode的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

(注意:这个错误貌似发生在某个地方,同一个项目文件在几天前就已经build好了)。

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

这应该解决这个问题。