libtool failed with exit code 1 on XCode 4.3
Solution 1
I was having this problem. I was following this tutorial for embedding webview in phonegap application- http://docs.phonegap.com/en/2.2.0/guide_cordova-webview_ios.md.html#Embedding%20Cordova%20WebView%20on%20iOS
i added'-Obj-C' in 'other linker flags' as said in point 12. I just changed -Obj-C to -ObjC and it worked !!
Solution 2
I don't know if this will help you, but I got rid of that error by removing the "-licucore" linker flag that was set in the "Other Linker flags" build setting. This seems to be the regex library for Mac OSX.
Solution 3
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
Doz
Updated on June 15, 2022Comments
-
Doz about 2 years
I have XCode 4.3 and I am getting this frustrating xml-lib related error. I have a feeling its because of the fact that 4.3 is not using /Developer folder but instead the /Applications/XCode.app/... The error message is below:
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
And the actual error:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool failed with exit code 1
Thanks guys!
-
Doz over 12 yearsWhere do i find that? I did a search via "licucore" in build and target and couldnt find it. I nmy other linker flags I have "-all_load -ObjC"
-
Vineel Shah over 12 yearsIn my project it was next to those flags. Sorry. Btw, turns out that it links the ICU lib for intl strings that is used by regex. I know, not pertinent.
-
Vineel Shah over 12 yearsOk, so exit 1 is a generic error. If you want to see a more detailed error message, you can copy/paste the first few lines from your post into the terminal and get the raw error message from libtool.