Cocoapods:安装"VialerSIPLib"时,目标具有传递性依赖关系,其中包括静态二进制文件 [英] Cocoapods : target has transitive dependencies that include static binaries when installing 'VialerSIPLib'

查看:186
本文介绍了Cocoapods:安装"VialerSIPLib"时,目标具有传递性依赖关系,其中包括静态二进制文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试为Jsip'VialerSIPLib'安装一个Objective-c包装器,并在我的快捷项目中使用它,这是我的吊舱

I'm trying to install an objective-c Wrapper for Jsip 'VialerSIPLib' and use it in my swift project here is my 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

但是在安装时出现此错误:-

but i get this error when installing :-

目标具有包含静态二进制文件的传递依赖项:

target has transitive dependencies that include static binaries:

如果我删除

use_frameworks!

use_frameworks!

我的podfile可以正常工作,但是我所有其他基于swift的pod都无法工作

from my podfile it would work but all my other swift based pods won't work

所以,我只剩下一个豆荚(VialerSIPLib)或使用除它以外的所有其他豆荚

so, i'm left with using only this one pod (VialerSIPLib) or Use all my other pods except it

推荐答案

如果仍然有人愿意,就不能完成

if any one is Still wondring ,it can't be Done

使用动态的供应商框架应该不是问题,即使 开发人员不将CocoaPods与use_frameworks!一起使用,除非它们用于 由于某种原因需要静态库,例如构建命令行 工具,最好使用静态链接.

Using dynamic vendored frameworks shouldn't be a problem even if the developer isn't using CocoaPods with use_frameworks!, unless they for some reason need a static lib, such as if building a command line tool, where static linking is preferable.

因此.您可以手动添加静态库并将其链接到您的项目中,或等待供应商将库更改为动态框架

So .You Could add the static library manually and link it in you project or wait for the vendor to Change the library into a dynamic Framework

更多信息此处

对我来说,这就是我的解决方法:-

For me this is how i solved it :-

1-使用Cocoapods在没有use_frameworks的情况下下载了静态库!

1- Downloaded the static library using Cocoapods without use_frameworks!

2-用迦太基添加其他库

2- used Carthage for Adding other libraries

3-并且,如果图书馆不支持迦太基,我会手动进行(不建议使用,因为可能会出现很多重复的依赖关系)

3- and if a library Doesn't have a Carthage support i would do it manually (Not advised since alot of Duplicate dependencies may Appear)

这篇关于Cocoapods:安装"VialerSIPLib"时,目标具有传递性依赖关系,其中包括静态二进制文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆