ios - 椰子足 : target has transitive dependencies that include static binaries when installing 'VialerSIPLib'

标签 ios swift swift3 cocoapods pjsip

我正在尝试为 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/

相关文章:

ios - 在 IOS 中编写正确的 init 函数

ios - SwiftUI:解除警报时如何执行关闭?

objective-c - 查看 Objc 文件的 swift 界面

ios - 禁用 UICollectionView 顶部的 "pull to refresh"空间

ios - 以编程方式将 UIPageViewController 过渡样式设置为滚动

iphone - iOS - 如何在sqlite中保存超链接?

ios - 方法执行完成后在 Controller 之间传递数据 [SWIFT]

ios - 在 Swift 中使用 hpple

ios - AlamofireObjectMapper 在 iOS 8 中不工作

ios - Swift 3 DispatchGroup单次成功DispatchWorkItem