【问题标题】:Integrating AppRTC to Ionic - iOS linker error将 AppRTC 集成到 Ionic - iOS 链接器错误
【发布时间】:2018-04-14 06:29:02
【问题描述】:

我正在将 AppRTC 集成到我的混合应用程序(离子 3 和角度 4)...

iOS AppRTC 集成:https://github.com/ISBX/apprtc-ios

我已成功安装 pod 并构建项目没有错误,但是当我添加时

 [RTCPeerConnectionFactory initializeSSL]; 

给我的

  application:didFinishLaunchingWithOptions:

当我构建项目时,出现以下错误:

  Undefined symbols for architecture arm64:

  "_OBJC_CLASS_$_RTCPeerConnectionFactory", referenced from:

  objc-class-ref in AppDelegate.o

  ld: symbol(s) not found for architecture arm64

  clang: error: linker command failed with exit code 1 (use -v to see 
  invocation)

已经在网上搜索过,但没有找到解决办法……

在链接器库中添加了“${inherited} $(OTHER_LDFLAGS) -ObjC -all_load”,重新启动并清理 xcode,删除了 DerivedData 文件,但问题仍然存在。

【问题讨论】:

    标签: ios ionic3 hybrid-mobile-app apprtc


    【解决方案1】:

    不确定这是否会有所帮助,因为您是从 pod 安装的,但是当框架搜索路径错误时,我们遇到了同样的错误。 $(inherited) pathToWebrtcFramework。通过这个选项,我们使用https://webrtc.org/native-code/ios/ 的说明自己构建了 webrtc 框架。

    还将仅构建活动架构设置为是。

    【讨论】:

      猜你喜欢
      • 2012-09-03
      • 2013-06-19
      • 2018-01-18
      • 1970-01-01
      • 2016-10-12
      • 2019-08-06
      • 2015-03-10
      • 2014-07-22
      • 2015-11-02
      相关资源
      最近更新 更多