将 linphone 集成到 iOS [英] Integrate linphone into iOS

查看:53
本文介绍了将 linphone 集成到 iOS的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试将 linphone lib 添加到我现有的 iOS 应用程序中,但无法构建

I am trying to add linphone lib to my existing iOS app, but it fails to build

我的流程:

  1. 在我现有的项目中添加了所有必需的框架作品.
  2. 将所有 lib 从 linphone-iphone/liblinphone-sdk/apple-darwin/lib/复制到 myproject/lib
  3. 将 linphone-iphone/Resources 复制到 myproject/Resources
  4. 然后我添加了 LinphoneManager.h &.m 有相关文件.
  5. 然后我开始构建应用程序,我在 Linphonecore 中找不到文件 #include "ortp/ortp.h"(但文件可用).

我从错误中了解到,我需要修改构建设置来搜索文件.我已经这样做了,但我仍然遇到同样的错误.

What I understand from the error is, I need to modify the build setting to search the file. I have done that but I still get the same error.

推荐答案

对于ortp/ortp.h"文件未找到错误!

For "ortp/ortp.h" File Not Found Error!

  1. 检查您的linphone-sdk"折叠(如果已添加到项目中)
  2. 如果添加,请检查 linphone-sdk/apple-darwin/lib/中的 libOrtp.a
  3. 如果存在,请检查构建阶段"->将二进制文件与库链接"(如果包含libOrtp.a")
  4. 以上都做完后,勾选Build settings"->header search paths",添加$(SRCROOT)/liblinphone-sdk/apple-darwin/include"

问题解决了!

这篇关于将 linphone 集成到 iOS的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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