问题描述
我正在尝试为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 :-
如果我删除
我的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
因此.您可以手动添加静态库并将其链接到您的项目中,或等待供应商将库更改为动态框架
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"时,目标具有传递性依赖关系,其中包括静态二进制文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!