I try to use in my app the library https://cocoapods.org/pods/GoogleWebRTC. So I Download it from cocoapods (https://dl.google.com/dl/cpdc/0d72a13625d8f3e5/GoogleWebRTC-1.1.25331.tar.gz) and unpack it. I have :
c:\sdk\WebRTC.framework
c:\sdk\WebRTC.framework\Headers
c:\sdk\WebRTC.framework\Modules
c:\sdk\WebRTC.framework\WebRTC
In the search path I add c:\sdk\WebRTC.framework
. Now in my unit I add this line:
procedure StubProc1; cdecl; external 'WebRTC' name 'OBJC_CLASS_$_RTCPeerConnectionFactory';
The compilation and linking work OK, but when I deploy the App, the app crash immediately. When I look the log I can see:
Exception Type: EXC_CRASH (SIGABRT) Exception Codes: 0x0000000000000000, 0x0000000000000000 Exception Note: EXC_CORPSE_NOTIFY Termination Description: DYLD, Library not loaded: @rpath/WebRTC.framework/WebRTC | Referenced from: /var/containers/Bundle/Application/A2C3A7DA-D35E-4649-AEA0-9AB518E48971/ALLiveVideoChatClient.app/ALLiveVideoChatClient | Reason: image not found Triggered by Thread: 0
Any idea why I have this "image not found" error?
If it's matter, https://cocoapods.org/pods/GoogleWebRTC say:
This pod contains the WebRTC iOS SDK in binary form. It is a dynamic library that contains the armv7, arm64 and x86_64 slices. Bitcode is not supported. Our currently provided API’s are Objective C only.