Details
-
Type:
Bug
-
Status: Open
-
Priority:
Medium
-
Resolution: Unresolved
-
Component/s: Package Manager
-
Labels:None
-
Environment:
Xcode 12 beta 3. SwiftPM tools 5.3. Targeting iOS 13.0+. Tested running on iPhone X hardware.
Description
If I provide a SwiftPM package with a dynamic xcframework using binaryTarget, the application will fail when I try to run it on a device. Integrating the xcframework into the project manually works, so I believe the xcframework itself should be correct. When attempting to run the project on device hardware it cannot find the dynamic library in the xcframework and throws:
dyld: Library not loaded: @rpath/openssl.framework/openssl
Referenced from: /private/var/containers/Bundle/Application/7A1FAC24-FD6F-4E06-8EE7-B71319C182EF/OpensslTest.app/OpensslTest
Reason: image not found
dyld: launch, loading dependent libraries
DYLD_LIBRARY_PATH=/usr/lib/system/introspection
DYLD_INSERT_LIBRARIES=/Developer/usr/lib/libBacktraceRecording.dylib:/Developer/usr/lib/libMainThreadChecker.dylib:/Developer/Library/PrivateFrameworks/DTDDISupport.framework/libViewDebuggerSupport.dylib
Multiple xcframeworks tried, all produce the same results.