我正在将AppRTC集成到我的混合应用程序(ionic 3和angular 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文件,但问题仍然存在。
发布于 2018-04-14 06:20:05
不确定这是否会有帮助,因为您是从pod安装的,但是当框架搜索路径错误时,我们得到了相同的错误。$(继承的) pathToWebrtcFramework。有了这个选项,我们已经使用https://webrtc.org/native-code/ios/上的说明自己构建了webrtc框架。
同时将build active architecture only设置为yes。
https://stackoverflow.com/questions/47828613
复制相似问题