Libtool error with exit code 1 on Xcode 4.3

I have Xcode 4.3 and I get this nasty xml-lib related error. I feel this because 4.3 does not use the / Developer folder, but instead /Applications/XCode.app / ... The error message 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!

+6
source share
5 answers

I had this problem. I followed this guide on implementing 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 the 'other linker flags' as mentioned in clause 12. I just changed -Obj-C to -ObjC and it will work!

+2
source

I don’t know if this will help you, but I got rid of this error by removing the “-licucore” linker flag that was set in the “Other linker flags” build setting. This seems to be a regex library for Mac OSX.

+1
source

I had the same problem when I tried to archive for ad-hoc testing and found that he was complaining because I had a space character in the name of my schema. To fix this, I went to Schema Management and removed the spaces from the name.

My specific mistake was

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

+1
source

I got this error when switching from Xcode 4.6 Developer Preview 1 to Xcode 4.6 Developer Preview 2

and the fix is ​​to re-add all the frameworks to your projects!

All frameworks (iAd, QuartzCore, GameKit, StoreKit, etc.) still pointed to the Xcode path from DP1. I just needed to reinstall them on DP2. Also, when adding frameworks, select “Relative to the SDK” and not “Absolute path”, as some frameworks (10% of them) still point to the correct path.

0
source

This can help.

In the project build settings, try deleting the build settings for "Other interface linker flag compilers" (if -Wmost is set, set it to zero).

Project → Build Settings ---> Other flags of the Builder interface compiler flags → set none (empty).

0
source

Source: https://habr.com/ru/post/909716/


All Articles