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

Pow crashes on device in SwiftUI Playgrounds Apps #19

Open
robb opened this issue Feb 4, 2023 · 2 comments
Open

Pow crashes on device in SwiftUI Playgrounds Apps #19

robb opened this issue Feb 4, 2023 · 2 comments
Labels
Bug Something isn't working

Comments

@robb
Copy link
Contributor

robb commented Feb 4, 2023

It appears that apps using this type of project don't handle binary dependencies well:

Screenshot 2023-02-04 at 19 05 23

@robb robb added the Bug Something isn't working label Feb 4, 2023
@robb robb changed the title Pow crashes on device on iOS 16.3 Pow crashes on device in SwiftUI Playgrounds Apps Feb 4, 2023
@robb
Copy link
Contributor Author

robb commented Feb 4, 2023

It seems like the Pow.framework isn't copied over?

dyld[842]: Library not loaded: @rpath/Pow.framework/Pow
  Referenced from: <CE999277-6DED-3083-A956-AE82819E938D> /private/var/containers/Bundle/Application/993B0BDE-901B-4699-BBDF-84D21A2BC822/PowTest.app/PowTest
  Reason: tried: '/private/var/containers/Bundle/Application/993B0BDE-901B-4699-BBDF-84D21A2BC822/lib/Pow.framework/Pow' (errno=2), '/private/var/containers/Bundle/Application/993B0BDE-901B-4699-BBDF-84D21A2BC822/lib/Pow.framework/Pow' (errno=2), '/private/preboot/Cryptexes/OS@rpath/Pow.framework/Pow' (errno=2), '/private/var/containers/Bundle/Application/993B0BDE-901B-4699-BBDF-84D21A2BC822/lib/Pow.framework/Pow' (errno=2), '/private/var/containers/Bundle/Application/993B0BDE-901B-4699-BBDF-84D21A2BC822/lib/Pow.framework/Pow' (errno=2), '/System/Library/Frameworks/Pow.framework/Pow' (errno=2, not in dyld cache)
Library not loaded: @rpath/Pow.framework/Pow
  Referenced from: <CE999277-6DED-3083-A956-AE82819E938D> /private/var/containers/Bundle/Application/993B0BDE-901B-4699-BBDF-84D21A2BC822/PowTest.app/PowTest
  Reason: tried: '/private/var/containers/Bundle/Application/993B0BDE-901B-4699-BBDF-84D21A2BC822/lib/Pow.framework/Pow' (errno=2), '/private/var/containers/Bundle/Application/993B0BDE-901B-4699-BBDF-84D21A2BC822/lib/Pow.framework/Pow' (errno=2), '/private/preboot/Cryptexes/OS@rpath/Pow.framework/Pow' (errno=2), '/private/var/containers/Bundle/Application/993B0BDE-901B-4699-BBDF-84D21A2BC822/lib/Pow.framework/Pow' (errno=2), '/private/var/containers/Bundle/Application/993B0BDE-901B-4699-BBDF-84D21A2BC822/lib/Pow.framework/Pow' (errno=2), '/System/Library/Frameworks/Pow.framework/Pow' (errno=2, not in dyld cache)
dyld config: DYLD_LIBRARY_PATH=/usr/lib/system/introspection DYLD_INSERT_LIBRARIES=/usr/lib/libBacktraceRecording.dylib:/usr/lib/libMainThreadChecker.dylib:/usr/lib/libRPAC.dylib:/Developer/Library/PrivateFrameworks/DTDDISupport.framework/libViewDebuggerSupport.dylib

@robb
Copy link
Contributor Author

robb commented Feb 4, 2023

Steps to reproduce:

  • Create a Swift Playgrounds App
  • Add Pow as a dependency
  • Run on device

Minimal example project here: PowTest.swiftpm.zip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant