Pod install displaying error in cocoapods version 1.0.0.beta.1

后端 未结 12 1048
傲寒
傲寒 2020-12-07 10:03

My podfile was working but after updating to cocoapods version 1.0.0.beta.1

pod install displays following error

MacBook-Pro:iOS-TuneIn home$ pod ins         


        
12条回答
  •  情歌与酒
    2020-12-07 10:24

    Pod file is just a ruby file, you need to specify required pod for all target. one of the available solution is to define all required pods in shared_pos, and use that for each target.

    For ex:

    Podfile

    platform :ios, '9.0'
    
    use_frameworks!
    
    def Shared_Pods
        pod 'Quick', '0.5.0'
        pod 'Nimble', '2.0.0-rc.1'
    end
    
    target 'MyMainTarget' do
        Shared_Pods
    end
    
    target 'MyUITests' do
        Shared_Pods
    end
    

提交回复
热议问题