问题
I m using Xcode 4.2 and i have add AviarySDK 2.4.4 in my project. Application runs fine in Simulator 5.0 and 4.3. I also test it on device having ios 4.1. So i want to generate .ipa file for my client. But by some reason it can not generate Archives. It gives following error
"/usr/bin/strip -S /Applications/Projects/AppName/AppName/AviarySDK/Resources/AviarySDKResources.bundle/AviarySDKResources -o /Users/User/Library/Developer/Xcode/DerivedData/WDYWT-avjpbcnwjylobvgevipvsqttnopd/ArchiveIntermediates/WDYWT/InstallationBuildProductsLocation/Applications/WDYWT.app/AviarySDKResources.bundle/AviarySDKResources
/usr/bin/strip: for architecture armv7 object: /Applications/Projects/AppName/AppName/AviarySDK/Resources/AviarySDKResources.bundle/AviarySDKResources malformed object (unknown load command 10)
error: strip /Applications/Projects/AppName/AppName/AviarySDK/Resources/AviarySDKResources.bundle/AviarySDKResources: /usr/bin/strip exited with 1 "
Any help will really great. Many thanks in advance.
回答1:
Strip errors are generally caused if you have duplicate debugging symbols in your project. Just try the following:
First Method:
- Go to build settings of your project
- Type
Strip
in the search Bar. - Under
Strip Debug Symbols During Copy
, you shall findDebug
and under that you shall findAny SDK
. - Select
NO
inAny SDK
, selectYES
inDebug
and selectYES
inStrip Debug Symbols during copy
. - A little below you shall find
Use Separate Strip
. Select YES.
- Check that
Strip Style
should remainAll Symbols
[If not then change it to that].
Second Method:
Since your error also mentions derived data, their might me duplicacy of your derived data as well. Delete Your project file from the derived data folder. If you don't know where the derived data folder is, Google it.
I am using aviary in my current project. I have a Mac Mini and a MacAir [for work at home]. I was facing the same strip issues with aviary which I resolved using the first method mentioned above.
It took me a week to figure this out cuz i am a relative newbie in development and nothing regarding this issue has been mentioned in aviary forums as well.
PS:
MacMini: Xcode 4.5
MacAir: Xcode 4.2
Hope this helps
来源:https://stackoverflow.com/questions/12642210/error-in-generating-archives