Class X is implemented in both and one of the two will be used, which one is undefined

后端 未结 5 1987
独厮守ぢ
独厮守ぢ 2020-12-13 09:10

I\'m getting this warning:

Class X is implemented in both  and  one of the two will be used, which one is undefined
         


        
5条回答
  •  粉色の甜心
    2020-12-13 09:38

    You can create a Podspec for your MyFramework with CoolPod as a dependency.


    Your MyFramework.podspec will look something like:

    Pod::Spec.new do |spec|
      spec.name          = 'TestFW'
      spec.version       = '1.0.0'
      spec.license       = { :type => 'BSD' }
      spec.homepage      = 'https://github.com/user/TestFW'
      spec.authors       = { 'Auther Name' => 'author@gmail.com' }
      spec.summary       = 'Testing FW Pod with Test App'
      spec.source        = { :git => 'https://github.com/user/TestFW.git' }
      spec.module_name   = 'TestFW'
      spec.ios.source_files   = 'TestFW/*.swift'
    
      spec.dependency 'CoolPod'
    end
    

    And your MyApplication's podfile will look something like this:

    target 'TestApp' do
      use_frameworks!
    
      pod 'CoolPod'
      pod 'TestFW'
    end
    

提交回复
热议问题