码迷,mamicode.com
首页 > 移动开发 > 详细

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

时间:2015-05-29 18:16:05      阅读:315      评论:0      收藏:0      [点我收藏+]

标签:xcodebuild

今天使用自动化生成 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)

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

标签:xcodebuild

原文地址:http://blog.csdn.net/offbye/article/details/46237265

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!