objective-c - libtool 在 XCode 4.3 上失败,退出代码为 1

标签 objective-c xcode xcode4.3

我有 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 failed with exit code 1

谢谢大家!

最佳答案

我遇到了这个问题。我正在按照本教程在 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 并且它有效!!

关于objective-c - libtool 在 XCode 4.3 上失败,退出代码为 1,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9511741/

相关文章:

uilabel - UILabel 和 UILabel 文本的不透明度不同

iOS - IB 中的 UILabel attributedText 无法更改字体大小

ios - 如何提取文本中的电子邮件/邮箱字符串列表或测试字符串是否为正确的电子邮件地址?

ios - 为什么导航 View Controller 返回零 View Controller ?

ios - 当我们按下菜单点击时,CAPSPageMenu 获取索引

ruby - 如何在 Lion 上安装 Xcode 4.6,需要用 RVM 升级 ruby

xcode - PBXCp 错误没有这样的文件或目录

ios - Xcode 4.3.3 安装程序的备份

ios - Xcode 突然停止调试应用程序

iphone - 如何计算图表上某人体重的 y 像素? (数学+编程题)