Integrate Linphone in own iOS project

谁都会走 提交于 2019-12-03 05:12:09
  • Download Liblinphone iPhone SDK from the link: http://www.linphone.org/releases/ios choose latest one.
  • Move two folders (include and lib) to your project folder
  • Add paths to these folders in your project Build settings - INCLUDE folder goes to headers and LIB folder goes to libraries.
  • In General tab in Linked frameworks add all files from LIB folder
  • Download/clone the repo https://github.com/BelledonneCommunications/linphone-iphone
  • Find 4 files: LinphoneManager.h/.m and Utils.h/.m , include them in your project folder and add them to the left pane to other class files also
  • Try to compile your project - xCode will spam you with errors - this is ok.
  • You need to inspect errors and just delete all file imports causing errors (Some Linphone Address book files/ some config store files and some helpers classes that you do not need for basic use in your project (because most likely you already implemented this features in your existing project))
  • Then compile again and inspect all errors in methods. Comment delete any problematic chunks of code (there will be about 10-15 of them).

LinphoneManager class already include many useful features - like good watch and use of linphone core with good logging and etc and etc, but not all of them (unfortunately).

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!