EmergeTools / Pow

Delightful SwiftUI effects for your app
https://movingparts.io/pow
MIT License
3.63k stars 153 forks source link

Pow crashes on device in SwiftUI Playgrounds Apps #19

Open robb opened 1 year ago

robb commented 1 year ago

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

Screenshot 2023-02-04 at 19 05 23
robb commented 1 year ago

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 commented 1 year ago

Steps to reproduce:

Minimal example project here: PowTest.swiftpm.zip