我正在尝试为 Jsip 'VialerSIPLib' 安装一个 objective-c Wrapper,并在我的 swift 项目中使用它,这里是我的 pod
platform :ios, ’10.0’
use_frameworks!
target 'EMedicalAdmin' do
pod 'ObjectMapper', '~> 2.1'
pod 'Alamofire', '~> 4.3'
pod 'SwiftyAvatar', '~> 1.0'
pod 'AlamofireImage', '~> 3.1'
pod 'Eureka', '~> 2.0.0-beta.1'
pod 'JSQMessagesViewController', :git => 'https://github.com/jessesquires/JSQMessagesViewController.git', :branch => 'develop'
pod 'PKHUD', '~> 4.0'
pod 'Firebase/Core'
pod 'Firebase/Messaging'
pod 'ImageSlideshow', '~> 1.1.0'
pod 'SwiftyJSON'
pod "FlexibleSteppedProgressBar"
pod 'BTNavigationDropdownMenu', :git => 'https://github.com/PhamBaTho/BTNavigationDropdownMenu.git', :branch => 'swift-3.0'
pod 'VialerSIPLib'
end
但是我在安装时遇到这个错误:-
target has transitive dependencies that include static binaries:
如果我删除
use_frameworks!
从我的 podfile 中它可以工作,但我所有其他基于 swift 的 pod 都不能工作
所以,我只能使用这个 pod (VialerSIPLib) 或使用除它以外的所有其他 pod
最佳答案
请将此添加到您的 podspec 中:s.static_framework = true
这在 cocoapods 1.4.0 版中可用。
它对我有用。!!
关于ios - 椰子足 : target has transitive dependencies that include static binaries when installing 'VialerSIPLib' ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43236176/