当前位置:   article > 正文

使用xcodebuild命令行编译iOS应用遇到的一个错误及解决办法_xcodebuild: error: unknown build action '/users/su

xcodebuild: error: unknown build action '/users/super/desktop/ios_demo/ios_d

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

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/繁依Fanyi0/article/detail/334059
推荐阅读
相关标签
  

闽ICP备14008679号