Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SR-13345] SwiftPM project with binaryTarget providing dynamic xcframework fails on devices #4514

Open
swift-ci opened this issue Aug 4, 2020 · 0 comments
Labels

Comments

@swift-ci
Copy link
Contributor

@swift-ci swift-ci commented Aug 4, 2020

Previous ID SR-13345
Radar None
Original Reporter opi-smccoole (JIRA User)
Type Bug

Attachment: Download

Environment

Xcode 12 beta 3. SwiftPM tools 5.3. Targeting iOS 13.0+. Tested running on iPhone X hardware.

Additional Detail from JIRA
Votes 14
Component/s Package Manager
Labels Bug
Assignee None
Priority Medium

md5: 739184e4d679284c17efaa50f5e36644

Issue 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.

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
@shahmishal shahmishal transferred this issue from apple/swift May 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants