git-osc-iphone编译

在编译git-osc-iphone项目时,出现错误:

Users/xxx/Documents/workspace/xcode/git-osc-iphone/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]
......

Command /bin/sh failed with exit code 1

刚开始以为UMengSocial会有更新,但修改和更新UMeng的库无效。

然后在网上查找Command /bin/sh failed with exit code 1的错误(因为Users/xxx/Documents/workspace/.....这样的信息一大堆,很多都是warn,error隐藏的很深,没看到),根本找不到答案。

最后搜索Compiling IB documents for earlier than iOS 7 is no longer supported,说修改buildfor选择 iOS 7.1 and Later,但重新编译仍然无效,也有不少回答说无效。

但其实是没有仔细看错误,因为它报的错误文件已经不是同一个了(不再是MSCommentDetailController.xib),没有仔细看的严重后果就是,以为跟网上说的一样修改buildfor方式无效,继续查,后来实在无招的时候才发现报错文件变了。

报错文件变了,但直接去搜索的时候,却发现有的xib文件,用名字去搜索的时候,找不到的xib文件(比如UMSCommentInputController.xib),最后直接打开Pods目录下的UMengSocial->Resources里,看到了所有的xib文件,一个个全部都修改Interface Builder Document/Builds for后,再编译,终于好了。

这个追问题的过程中,还去查了UMengSocial的pod引入版本写法,想给它修改为最新的,虽然无效,但还是记录下,各个符号代表的意思,下面是podfile指定版本号时的逻辑运算符:

'> 0.1'    Any version higher than 0.1         0.1以上
'>= 0.1'   Version 0.1 and any higher version  0.1以上,包括0.1
'< 0.1'    Any version lower than 0.1          0.1以下

'<= 0.1'   Version 0.1 and any lower version   0.1以下,包括0.1

区别由逻辑操作符的:~>
'~> 0.1.2' Version 0.1.2 and the versions up to 0.2, not including 0.2 and higher  0.2以下(不含0.2),0.1.2以上(含0.1.2)
'~> 0.1' Version 0.1 and the versions up to 1.0, not including 1.0 and higher      1.0以下(不含1.0),0.1以上(含0.1)
'~> 0' Version 0 and higher, this is basically the same as not having it.          0和以上,等于没有此约束
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值