昨天把 CocoPods
升级到 1.0.1
后:
执行 pod install
命令出错,以前没有问题的 podfile
文件,现在报错,报错如下:
[!] Invalid `Podfile` file: [!] Unsupported options `{:exclusive=>true}` for target `XXX`.复制代码
这不是你项目的问题,而是 CocoaPods
升级到 1.0.0
以后的一个新的特性。如果你也碰到这个问题,请在 podfile
文件里加入 platform
,以及 target
,最后写一个 end
。就像下面这样:
platform :ios, "你项目支持的最低版本号(比如说:8.0)"#CocoaPods新加入的特性target "你的项目名" do.................................................这里是你使用到的第三方pod.................................................end复制代码