When I add the package to my project it compiles and runs on a simulator. However, on a physical device, it crashes on launch with the following error:
dyld: Library not loaded: @rpath/WebRTC.framework/WebRTC
Referenced from: /private/var/containers/Bundle/Application/AA9F8C9C-7EF4-4556-8848-1EEFE1785658/WebRTC-Demo.app/WebRTC-Demo
Reason: image not found
dyld: launch, loading dependent libraries
DYLDLIBRARYPATH=/usr/lib/system/introspection
DYLDINSERTLIBRARIES=/Developer/usr/lib/libBacktraceRecording.dylib:/Developer/usr/lib/libMainThreadChecker.dylib:/Developer/Library/PrivateFrameworks/DTDDISupport.framework/libViewDebuggerSupport.dylib
Further investigation:
After archiving the project and exporting ipa file, the ipa file is missing the binary framework and still crashing on launch.
Removing the Swift package and attaching the xcframework manually (by drag and drop) works on Simulators and physical devices.
Tech specs
XCFramework created on macOS 10.15.5 with Xcode 11.5
Used Xcode 12.0 beta 1 on macOS 10.15 for the app which uses the framework.
I got the error above on iPhone X and iPad pro 10.5"
Used the following Package.swift file.
Framework download link can be found in the Package.Swift file above.
Any suggestions/insights would be helpful.
Thanks!