使用xcodebuild命令行编译iOS应用遇到的一个错误及解决办法

今天使用自动化生成 iphone App时遇到一个奇怪问题,Xcode编译是好的,但xcodebuild命令行编译iOS编译报下面的错误,在stackoverflow上没有搜到相关的信息,看了搞iOS开发的都不用命令行工具啊。仔细分析错误信息后,找到的解决方法是在工程目录的Frameworks下面删除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)

郑重声明:本站内容如果来自互联网及其他传播媒体,其版权均属原媒体及文章作者所有。转载目的在于传递更多信息及用于网络分享,并不代表本站赞同其观点和对其真实性负责,也不构成任何其他建议。