EmergeTools / Pow

Delightful SwiftUI effects for your app

Home Page:https://movingparts.io/pow

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Pow crashes on device in SwiftUI Playgrounds Apps

robb opened this issue · comments

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

Screenshot 2023-02-04 at 19 05 23

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

Steps to reproduce:

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

Minimal example project here: PowTest.swiftpm.zip