6

我有 XCode 4.3,我收到了这个令人沮丧的 xml-lib 相关错误。我有一种感觉,因为 4.3 没有使用 /Developer 文件夹,而是使用 /Applications/XCode.app/... 错误消息如下:

Libtool /Users/dkatz/Library/Developer/Xcode/DerivedData/RWEngines-ewchevfhokeivnffrputdqapsyxu/Build/Products/Release-iphonesimulator/RWEngines.framework/Versions/A/RWEngines normal i386
cd /Users/dkatz/Sites/xCode/RWA/RWEngines
setenv MACOSX_DEPLOYMENT_TARGET 10.6
setenv PATH "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/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/iPhoneSimulator5.0.sdk -L/Users/dkatz/Library/Developer/Xcode/DerivedData/RWEngines-ewchevfhokeivnffrputdqapsyxu/Build/Products/Release-iphonesimulator -filelist /Users/dkatz/Library/Developer/Xcode/DerivedData/RWEngines-ewchevfhokeivnffrputdqapsyxu/Build/Intermediates/RWEngines.build/Release-iphonesimulator/RWEngines.build/Objects-normal/i386/RWEngines.LinkFileList -ObjC -Xlinker -no_implicit_dylibs -D__IPHONE_OS_VERSION_MIN_REQUIRED=50000 -framework UIKit /Users/dkatz/Library/Developer/Xcode/DerivedData/RWEngines-ewchevfhokeivnffrputdqapsyxu/Build/Products/Release-iphonesimulator/libCorePlot-CocoaTouch.a -framework SenTestingKit -framework QuartzCore -framework Foundation -framework RWCommon -o /Users/dkatz/Library/Developer/Xcode/DerivedData/RWEngines-ewchevfhokeivnffrputdqapsyxu/Build/Products/Release-iphonesimulator/RWEngines.framework/Versions/A/RWEngines

而实际的错误:

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool 失败,退出代码为 1

多谢你们!

4

5 回答 5

2

我遇到了这个问题。我正在按照本教程在 phonegap 应用程序中嵌入 webview - http://docs.phonegap.com/en/2.2.0/guide_cordova-webview_ios.md.html#Embedding%20Cordova%20WebView%20on%20iOS

如第 12 点所述,我在“其他链接器标志”中添加了“-Obj-C”。我刚刚将 -Obj-C 更改为 -ObjC 并且它有效!

于 2013-03-04T09:16:15.847 回答
1

I had this same issue when I was attempting to Archive for ad-hoc testing and discovered that it was complaining because I had a space character in my scheme name. To fix this I went to Manage Schemes and removed spaces from the name.

My specific error was

clang: error: '-I-' not supported, please use -iquote instead

于 2012-05-11T23:09:35.520 回答
1

我不知道这是否会对您有所帮助,但我通过删除“其他链接器标志”构建设置中设置的“-licucore”链接器标志来消除该错误。这似乎是 Mac OSX 的正则表达式库。

于 2012-03-01T15:46:18.360 回答
0

这可能会有所帮助。

在项目构建设置中,尝试删除“Other Interface Builder Compiler Flags”的构建设置(如果设置了 -Wmost,请将其设置为 nil)。

项目 --> 构建设置 ---> 其他接口生成器编译器标志 --> 设置为无(空)。

于 2014-01-09T06:49:56.723 回答
0

从 Xcode 4.6 Developer Preview 1 切换到 Xcode 4.6 Developer Preview 2 时出现此错误

解决方法是将所有框架重新添加到您的项目中!

所有框架(iAd、QuartzCore、GameKit、StoreKit 等)仍然从 DP1 指向 Xcode 路径。我只需要将它们重新绑定到 DP2。此外,在添加框架时,选择“相对于 SDK”而不是“绝对路径”,因为某些框架(其中 10%)仍然指向正确的路径。

于 2012-12-01T04:59:26.213 回答