我想在我的项目中合并 2 个 pod。一个是:
source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '8.0'
use_frameworks!
pod 'DJKFlipper'
另一个是:
platform :ios, '9.0'
pod 'HQPagerViewController', :git=> 'https://github.com/quangpc/HQPagerViewController.git', :branch=> 'master'
问题是一个要求平台 8.0 而另一个是 9.0
我尝试将整个文件平台更改为 8.0,但出现以下错误:Specs satisfying the HQPagerViewController (from https://github.com/quangpc/HQPagerViewController.git, branch master), HQPagerViewController (= 1.0) dependency were found, but they required a higher minimum deployment target.
如果将目标保持在 9.0,安装 pod 后我会在应用程序中遇到超过 100 个问题,因为目标平台不正确。
我也试过这个:
target 'Bhaskar' do
# Comment the next line if you're not using Swift and don't want to use dynamic frameworks
platform :ios, ‘9.0’
use_frameworks!
pod 'HQPagerViewController', :git=> 'https://github.com/quangpc/HQPagerViewController.git', :branch=> 'master'
end
target 'Bhaskar - FlipView’ do
source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '8.0'
use_frameworks!
pod 'DJKFlipper'
end
但这里也出现错误。我可能是第二次使用 Pod,并且总是使用相同的平台。我怎样才能将这两者结合起来?
任何帮助将不胜感激!谢谢!