折腾:
【已解决】Xcode9.2编译出错:ld library not found for -lMobClickLibrary
期间,继续编译,出错:
PhaseScriptExecution [CP]\ Copy\ Pods\ Resources /Users/crifan/Library/Developer/Xcode/DerivedData/INQuzhou-gsaoinqswpvjtsarjilxvzlvasch/Build/Intermediates.noindex/INQuzhou.build/Debug-iphonesimulator/INQuzhou.build/Script-026864B863E55843D81D22D4.sh
cd /Users/crifan/dev/dev_root/daryun/Projects/inquzhou/sourcecode/iOS/inquzhou
/bin/sh -c /Users/crifan/Library/Developer/Xcode/DerivedData/INQuzhou-gsaoinqswpvjtsarjilxvzlvasch/Build/Intermediates.noindex/INQuzhou.build/Debug-iphonesimulator/INQuzhou.build/Script-026864B863E55843D81D22D4.sh
/Users/crifan/dev/dev_root/daryun/Projects/inquzhou/sourcecode/iOS/inquzhou/Pods/UMengSocial/Umeng_SDK_Social_iOS_ARM64_5.0/UMSocial_Sdk_5.0/UMSocialSDKResourcesNew.bundle
/Users/crifan/dev/dev_root/daryun/Projects/inquzhou/sourcecode/iOS/inquzhou/Pods/UMengSocial/Umeng_SDK_Social_iOS_ARM64_5.0/UMSocial_Sdk_Extra_Frameworks/TencentOpenAPI/TencentOpenApi_IOS_Bundle.bundle
/Users/crifan/dev/dev_root/daryun/Projects/inquzhou/sourcecode/iOS/inquzhou/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/crifan/Library/Developer/Xcode/DerivedData/INQuzhou-gsaoinqswpvjtsarjilxvzlvasch/Build/Products/Debug-iphonesimulator/In衢州.app/UMSCommentDetailController.nib /Users/crifan/dev/dev_root/daryun/Projects/inquzhou/sourcecode/iOS/inquzhou/Pods/UMengSocial/Umeng_SDK_Social_iOS_ARM64_5.0/UMSocial_Sdk_5.0/SocialSDKXib/UMSCommentDetailController.xib –sdk /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.1.sdk –target-device iphone
/* com.apple.ibtool.document.warnings */
/Users/crifan/dev/dev_root/daryun/Projects/inquzhou/sourcecode/iOS/inquzhou/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/crifan/dev/dev_root/daryun/Projects/inquzhou/sourcecode/iOS/inquzhou/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/crifan/dev/dev_root/daryun/Projects/inquzhou/sourcecode/iOS/inquzhou/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
2017-12-12 10:41:47.057 ibtoold[10414:833799] <CATransformLayer: 0x7fda9a0a0780> – changing property masksToBounds in transform-only layer, will have no effect
2017-12-12 10:41:47.058 ibtoold[10414:833799] <CATransformLayer: 0x7fda97c3fb10> – changing property masksToBounds in transform-only layer, will have no effect
2017-12-12 10:41:47.058 ibtoold[10414:833799] <CATransformLayer: 0x7fda9a0a0600> – changing property masksToBounds in transform-only layer, will have no effect
2017-12-12 10:41:47.058 ibtoold[10414:833799] <CATransformLayer: 0x7fda97c399d0> – changing property masksToBounds in transform-only layer, will have no effect
Command /bin/sh failed with exit code 1
好像有个error:
UMSCommentDetailController.xib:global: error: Compiling IB documents for earlier than iOS 7 is no longer supported. [12]
搜:
UMSCommentDetailController.xib global error Compiling IB documents for earlier than iOS 7 is no longer supported
更新iOS11以及Xcode9beta项目遇到的坑 – 简书
iOS 升级xcode9之后,友盟报错的问题 – 枫叶王子 – 博客园
基本上都是说:
xib去设置iOS 7.1 and Later就可以了。
找到对应的xib:
全部设置:
Interface Builder Document -》 Builds For
从
Unknown iOS Version
改为:
iOS 7.1 and Later
【总结】
此处用了Xcode 9.1去编译iOS项目时,友盟SDK中的xib文件链接出错:
UMSCommentDetailController.xib:global: error: Compiling IB documents for earlier than iOS 7 is no longer supported. [12]
解决办法是:
从项目文件夹中找到友盟统计的(好多个)xib文件:
在右边的文档属性中,找到
Interface Builder Document -》 Builds For
从
Unknown iOS Version
改为:
iOS 7.1 and Later
即可。
【后记】
转载请注明:在路上 » 【已解决】Xcode链接友盟统计库出错:UMSCommentDetailController.xib global error Compiling IB documents for earlier than iOS 7 is no longer supported