美文网首页
iOS linphone -SDK集成 以及demo 下载运行

iOS linphone -SDK集成 以及demo 下载运行

作者: 之后会更好 | 来源:发表于2022-04-11 16:24 被阅读0次

    一.iOS linphone- sdk 集成
    cocopods集成。

    1. 首先安装 cocopods,自己去面向百度研究吧。
    2. 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 到你的目录下,敲回车

    1. 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文件

    相关文章

      网友评论

          本文标题:iOS linphone -SDK集成 以及demo 下载运行

          本文链接:https://www.haomeiwen.com/subject/pixqdrtx.html