There is a strange problem with using Automation to build the iphone app today, Xcode compilation is good, but the Xcodebuild command line compiles the following error in the iOS compiler, the StackOverflow does not find the relevant information, look at the development of iOS do not have command-line tools AH. After careful analysis of the error message, the workaround found is to delete the frameworks below the project directory Corefoundation.framework
/applications/xcode.app/contents/developer/toolchains/xcodedefault.xctoolchain/usr/bin/strip:dynamic stub Library can ' t be changed once created:/applications/xcode.app/contents/developer/platforms/iphoneos.platform/ Developer/sdks/iphoneos.sdk/system/library/frameworks/corefoundation.framework/corefoundation (For Architecture ARMV7)
error:strip/applications/xcode.app/contents/developer/platforms/iphoneos.platform/developer/sdks/ Iphoneos8.3.sdk/system/library/frameworks/corefoundation.framework/corefoundation:/Applications/Xcode.app/ Contents/developer/toolchains/xcodedefault.xctoolchain/usr/bin/strip exited with 1
processproductpackaging/applications/xcode.app/contents/developer/platforms/iphoneos.platform/developer/sdks/ iphoneos8.3.sdk/entitlements.plist/users/zhangxitao/library/developer/xcode/deriveddata/ Salesphone-gwggzuiqqvbllqbzkptfzkxaxouc/build/intermediates/salesphone.build/release-iphoneos/salesphone.build /corefoundation.framework.xcent
Cd/users/zhangxitao/pycharmprojects/appgen/work/net.znkeji/iphone
Export Path= "/applications/xcode.app/contents/developer/platforms/iphoneos.platform/developer/usr/bin:/ applications/xcode.app/contents/developer/usr/bin:/users/zhangxitao/anaconda/bin:/users/zhangxitao/app/ Mongodb-osx-x86_64-2.6.5/bin:/usr/local/opt/coreutils/libexec/gnubin:/users/zhangxitao/npm/bin:/usr/local/bin :/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/git/bin:/users/zhangxitao/downloads/apache-maven-3.2.1/bin:/users/ Zhangxitao/app/sdk/tools:/users/zhangxitao/app/sdk/platform-tools:/users/zhangxitao/app/adt-bundle-mac-x86_ 64-20131030/eclipse/plugins/org.apache.ant_1.8.3.v201301120609/bin:/users/zhangxitao/work/ Spring-roo-1.2.5.release/bin "
builtin-productpackagingutility/applications/xcode.app/contents/developer/platforms/iphoneos.platform/ Developer/sdks/iphoneos8.3.sdk/entitlements.plist-entitlements-format Xml-o/users/zhangxitao/library/developer/ xcode/deriveddata/salesphone-gwggzuiqqvbllqbzkptfzkxaxouc/build/intermediates/salesphone.build/ Release-iphoneos/salesphone.build/corefoundation.framework.xcent
* * BUILD FAILED * *
The following build commands failed:
pbxcp/applications/xcode.app/contents/developer/platforms/iphoneos.platform/developer/sdks/iphoneos8.3.sdk/ System/library/frameworks/corefoundation.framework Build2/salesphone.app/frameworks/corefoundation.framework
processproductpackaging/applications/xcode.app/contents/developer/platforms/iphoneos.platform/developer/sdks/ iphoneos8.3.sdk/entitlements.plist/users/zhangxitao/library/developer/xcode/deriveddata/ Salesphone-gwggzuiqqvbllqbzkptfzkxaxouc/build/intermediates/salesphone.build/release-iphoneos/salesphone.build /corefoundation.framework.xcent
(2 failures)
Compile an error and workaround for iOS apps using the Xcodebuild command line