[英]How to solve this error like Invalid `Podfile` file: [!] Unsupported options `{:exclusive=>true}` for target
I clone the project fro from repository and this project podfile containing the version 0.39.0
.When i tried pod install
command then i always get the error like Podfile
file: [!] Unsupported options {:exclusive=>true} for target'
. 我从仓库克隆项目和来回含有版本这个项目podfile
0.39.0
。当我试图pod install
命令的话,我总是得到这样的错误Podfile
文件:不支持的选项[!] {:exclusive=>true} for target'
。 Podfile looks like the following Podfile如下所示
inhibit_all_warnings!
def shared_pods
pod 'AFNetworking', '~> 2.0'
pod 'Crashlytics'
end
target ‘product_DEV' do
shared_pods
end
target ‘productTests', :exclusive => true do
shared_pods
end
How to solve this issue? 如何解决这个问题? Please help me.
请帮我。
:exclusive => true do
has been deprecated check out this migration guide. :exclusive => true do
已被弃用,请参阅此迁移指南。
Or try changing the pod file content to something like this, 或者尝试将pod文件的内容更改为类似的内容,
# Uncomment the next line to define a global platform for your project # platform :ios, '9.0' target 'product_DEV' do use_frameworks! pod 'AFNetworking', '~> 2.0' pod 'Crashlytics' target 'productTests' do inherit! :search_paths end end
This is a bind shot, give it a try it may help,Check other reference ref1 , ref2 这是一个装订镜头,请尝试一下可能会有用,请检查其他参考ref1 , ref2
Check ref2 abstract_target
may help. 检查ref2
abstract_target
可能有帮助。
abstract_target 'DummyTarget' do pod "..." target 'App1' do end target 'App2' do end end abstract_target'DummyTarget'执行pod“ ...”目标'App1'执行结束目标'App2'执行结束
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.