Xcode9报错Command /bin/sh failed with exit code 1


升级Xcode9,项目运行失败报错:Command /bin/sh failed with exit code 1

    错误详情:报错原因为pod的里的第三方友盟xib版本号问题,
p.p1 {margin: 0.0px 0.0px 0.0px 12.0px; text-indent: -12.0px; font: 11.0px Menlo}p.p2 {margin: 0.0px 0.0px 0.0px 12.0px; text-indent: -12.0px; font: 11.0px Menlo; min-height: 13.0px}span.s1 {font: 11.0px 'PingFang SC'}
PhaseScriptExecution [CP]\ Copy\ Pods\ Resources /Users/lx/Library/Developer/Xcode/DerivedData/ MyLibrary -ddrsgsrjpfocjoayxgljcmunezzw/Build/Intermediates.noindex/ MyLibrary .build/Debug-iphoneos/ MyLibrary .build/Script-788668C26D171DEEC02CAE5E.sh
cd /Users/lx/Desktop/ MyLibrary /iphone/ MyLibrary
/bin/sh -c /Users/lx/Library/Developer/Xcode/DerivedData/ MyLibrary -ddrsgsrjpfocjoayxgljcmunezzw/Build/Intermediates.noindex/ MyLibrary .build/Debug-iphoneos/ MyLibrary .build/Script-788668C26D171DEEC02CAE5E.sh


/Users/lx/Desktop/ MyLibrary /iphone/ MyLibrary /Pods/MJRefresh/MJRefresh/MJRefresh.bundle
/Users/lx/Desktop/ MyLibrary /iphone/ MyLibrary /Pods/SVProgressHUD/SVProgressHUD/SVProgressHUD.bundle
/Users/lx/Desktop/ MyLibrary /iphone/ MyLibrary /Pods/UMengSocialCOM/Umeng_SDK_Social_iOS_ARM64_5.2.1/UMSocial_Sdk_5.2.1/UMSocialSDKResourcesNew.bundle
/Users/lx/Desktop/ MyLibrary /iphone/ MyLibrary /Pods/UMengSocialCOM/Umeng_SDK_Social_iOS_ARM64_5.2.1/UMSocial_Sdk_Extra_Frameworks/TencentOpenAPI/TencentOpenApi_IOS_Bundle.bundle
/Users/lx/Desktop/ MyLibrary /iphone/ MyLibrary /Pods/UMengSocialCOM/Umeng_SDK_Social_iOS_ARM64_5.2.1/UMSocial_Sdk_Extra_Frameworks/SinaSSO/WeiboSDK.bundle
ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target 8.0 --output-format human-readable-text --compile /Users/lx/Library/Developer/Xcode/DerivedData/iLUXDAYEC-ddrsgsrjpfocjoayxgljcmunezzw/Build/Products/Debug-iphoneos/iLUXDAYEC.app/UMSCommentDetailController.nib /Users/lx/Desktop/ MyLibrary /iphone/ MyLibrary /Pods/UMengSocialCOM/Umeng_SDK_Social_iOS_ARM64_5.2.1/UMSocial_Sdk_5.2.1/SocialSDKXib/UMSCommentDetailController.xib --sdk /Users/lx/Desktop/个人 /安装包 /Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.0.sdk --target-device iphone
2017-09-22 11:22:24.608 ibtoold[28644:1474589] WARNING: Unhandled destination metrics: (null)
2017-09-22 11:22:24.608 ibtoold[28644:1474589] WARNING: Unhandled destination metrics: (null)
/* com.apple.ibtool.document.warnings */
/Users/lx/Desktop/ MyLibrary /iphone/ MyLibrary /Pods/UMengSocialCOM/Umeng_SDK_Social_iOS_ARM64_5.2.1/UMSocial_Sdk_5.2.1/SocialSDKXib/UMSCommentDetailController.xib:global: warning: This file is set to build for a version older than the deployment target. Functionality may be limited. [9]
/* com.apple.ibtool.document.errors */
/Users/lx/Desktop/ MyLibrary /iphone/ MyLibrary /Pods/UMengSocialCOM/Umeng_SDK_Social_iOS_ARM64_5.2.1/UMSocial_Sdk_5.2.1/SocialSDKXib/UMSCommentDetailController.xib:global: error: Compiling IB documents for earlier than iOS 7 is no longer supported. [12]
/* com.apple.ibtool.warnings */
/Users/lx/Desktop/ MyLibrary /iphone/ MyLibrary /Pods/UMengSocialCOM/Umeng_SDK_Social_iOS_ARM64_5.2.1/UMSocial_Sdk_5.2.1/SocialSDKXib/UMSCommentDetailController.xib: warning: Internationalization is not available when compiling for targets before iOS 6.0

Command /bin/sh failed with exit code 1


解决方案:

点击Pods-->找到友盟的文件夹,然后找到Resources,找到那一堆XIB分别点击每个xib,修改xcode右侧工具栏展开属性栏(每个xib都要改),找到interface Builder Document 把Builds For 换成7.0以后,我是换成了8.0以后,按向下适配2个版本,当前版本已经iOS 11,修改到9应该也没问题,亲测有效


参考地址:http://www.cocoachina.com/bbs/read.php?tid-1726047-page-1.html



评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值