iOS 升级xcode9之后,友盟报错的问题

首先,贴上问题

PhaseScriptExecution [CP]\ Copy\ Pods\ Resources /Users/huangwenwu/Library/Developer/Xcode/DerivedData/蛮划算商户-ewrgkjkzqiydrvcebvfzxszrqrsa/Build/Intermediates.noindex/蛮划算商户.build/Debug-iphoneos/蛮划算商户.build/Script-4678F85C2B4927E9B0B30587.sh

    cd /Users/huangwenwu/Documents/版本/商户版/蛮划算商户V2.1.1版本

    /bin/sh -c /Users/huangwenwu/Library/Developer/Xcode/DerivedData/蛮划算商户-ewrgkjkzqiydrvcebvfzxszrqrsa/Build/Intermediates.noindex/蛮划算商户.build/Debug-iphoneos/蛮划算商户.build/Script-4678F85C2B4927E9B0B30587.sh

 

/Users/huangwenwu/Documents/版本/商户版/蛮划算商户V2.1.1版本/Pods/AMap3DMap/MAMapKit.framework/AMap.bundle

/Users/huangwenwu/Documents/版本/商户版/蛮划算商户V2.1.1版本/Pods/IQKeyboardManager/IQKeyboardManager/Resources/IQKeyboardManager.bundle

/Users/huangwenwu/Documents/版本/商户版/蛮划算商户V2.1.1版本/Pods/MJRefresh/MJRefresh/MJRefresh.bundle

/Users/huangwenwu/Documents/版本/商户版/蛮划算商户V2.1.1版本/Pods/UMengSocial/Umeng_SDK_Social_iOS_ARM64_5.0/UMSocial_Sdk_5.0/UMSocialSDKResourcesNew.bundle

/Users/huangwenwu/Documents/版本/商户版/蛮划算商户V2.1.1版本/Pods/UMengSocial/Umeng_SDK_Social_iOS_ARM64_5.0/UMSocial_Sdk_Extra_Frameworks/TencentOpenAPI/TencentOpenApi_IOS_Bundle.bundle

/Users/huangwenwu/Documents/版本/商户版/蛮划算商户V2.1.1版本/Pods/UMengSocial/Umeng_SDK_Social_iOS_ARM64_5.0/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/huangwenwu/Library/Developer/Xcode/DerivedData/蛮划算商户-ewrgkjkzqiydrvcebvfzxszrqrsa/Build/Products/Debug-iphoneos/蛮划算商户.app/UMSCommentDetailController.nib /Users/huangwenwu/Documents/版本/商户版/蛮划算商户V2.1.1版本/Pods/UMengSocial/Umeng_SDK_Social_iOS_ARM64_5.0/UMSocial_Sdk_5.0/SocialSDKXib/UMSCommentDetailController.xib --sdk /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.0.sdk --target-device iphone

2017-09-30 15:31:36.916 ibtoold[49391:3968331] WARNING: Unhandled destination metrics: (null)

2017-09-30 15:31:36.916 ibtoold[49391:3968331] WARNING: Unhandled destination metrics: (null)

/* com.apple.ibtool.document.warnings */

/Users/huangwenwu/Documents/版本/商户版/蛮划算商户V2.1.1版本/Pods/UMengSocial/Umeng_SDK_Social_iOS_ARM64_5.0/UMSocial_Sdk_5.0/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/huangwenwu/Documents/版本/商户版/蛮划算商户V2.1.1版本/Pods/UMengSocial/Umeng_SDK_Social_iOS_ARM64_5.0/UMSocial_Sdk_5.0/SocialSDKXib/UMSCommentDetailController.xib:global: error: Compiling IB documents for earlier than iOS 7 is no longer supported. [12]

/* com.apple.ibtool.warnings */

/Users/huangwenwu/Documents/版本/商户版/蛮划算商户V2.1.1版本/Pods/UMengSocial/Umeng_SDK_Social_iOS_ARM64_5.0/UMSocial_Sdk_5.0/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 点击右侧展开属性栏 找到interface Builder Document 吧Builds For 换成7.0以后

改为之后,clear项目,运行OK!

 

posted @ 2017-09-30 15:44  枫叶王子  阅读(264)  评论(0编辑  收藏