JAK
JAK

Reputation: 6491

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 looks like the following

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.

Upvotes: 1

Views: 3034

Answers (1)

Gokul G
Gokul G

Reputation: 2096

  • :exclusive => true do has been deprecated check out this migration guide.

    • try re-initing the pod file,so that you can have latest pod file.
    • Or try changing the pod file content to something like this,

      # 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

    • Check ref2 abstract_target may help.

      abstract_target 'DummyTarget' do pod "..." target 'App1' do end target 'App2' do end end

Upvotes: 1

Related Questions