使用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)

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

offbye

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值