一.iOS linphone- sdk 集成
cocopods集成。
- 首先安装 cocopods,自己去面向百度研究吧。
- podfile文件内容
# Uncomment the next line to define a global platform for your project
##For macosx
# platform :osx, '10.9'
#source "https://gitlab.linphone.org/BC/public/podspec-macos.git"
#For iOS
platform :ios, '9.0'
source "https://gitlab.linphone.org/BC/public/podspec.git"
target '你的项目名' do
use_frameworks!
# Pods for Myproject
pod 'linphone-sdk', '> 5.1.0-alpha'
end
3.cd 到你的目录下,敲回车
- pod install
然后就是等待。。。。。即可集成完毕
备注:这个是swift,oc的没有,很痛苦。
二. demo的下载以及运行
https://gitlab.linphone.org/BC/public/tutorials.git
里面有一个OutgoingCall的Demo,用cocoapods安装SDK没有问题,记得把Podfile的一条source "https://github.com/CocoaPods/Specs.git注释掉,用#号注释,这个SDK支持ios9.0,上层的swift应用需要ios14,但是这个不重要,可以参考其中的代码,OutgoingCall.swift文件
网友评论