lorenzo373
lorenzo373

Reputation: 434

WebRTC arm64 Linker Error

I'm trying to build a WebRTC project on xCode with an ARM64 architecture.
I have made some progress solving errors, but I'm stuck on this final one:

Undefined symbols for architecture arm64:
"_OBJC_CLASS_$_RTCVideoRenderer", referenced from:
  objc-class-ref in CallViewController.o
 (maybe you meant: _OBJC_CLASS_$_RTCVideoRendererAdapter)
ld: symbol(s) not found for architecture arm64  

Help would be appreciated.

Thanks.

Upvotes: 0

Views: 2062

Answers (2)

Zulqarnain Mustafa
Zulqarnain Mustafa

Reputation: 1653

I work with the WebRTC Cococapod. The issue is that you're trying to build and use RTCVideoRenderer on armv7. Add an architecture check and it will be resolved:

    #if arch(arm64)
        //RTCVideoRenderer
    #else
       //Other case
    #endif

Upvotes: 0

Devang Goswami
Devang Goswami

Reputation: 284

I am not sure but , go to the build settings and change the build active architectures only to NO , and try ,and if you are running in simulator then change valid architecture to i386 .

I am not sure but if it will help .

cause i have gone through same problem and it was solved by this solution .

Upvotes: 1

Related Questions