DenisovAV / flutter_tv

232 stars 40 forks source link

Mac mini M1 works on simulator, error using real TV #15

Closed Alvaro1dev closed 1 year ago

Alvaro1dev commented 1 year ago

Hi After successfully running the app in the simulator, I changed ‘debug_sim’ to ‘debug’ in the following line: sh ../scripts/copy_framework.sh debug FLUTTER_LOCAL_ENGINE inside ‘run_apple_tv.sh’ and run it again. Then, trying to run it on Xcode for a real TV throws the following error:

PathNotFoundException: Cannot open file, path = '/Users/alvaro/development/flutter_tv/build/ios/Debug- iphonesimulator/App.framework/Flutter_assets/kernel_blob.bin' (OS Error: No such file or directory, errno = 2)

0 _checkForErrorResponse (dart:io/common.dart:55:9)

1 _File.open. (dart:io/file_impl.dart:381:7)

Command PhaseScriptExecution failed with a nonzero exit code Debug-iphonesimulator folder only have 1 folder inside: Flutter.framework.
DenisovAV commented 1 year ago

Hi Alvaro, try to do it from scratch, delete the project, check it out again, change debug_sim to debug and run. It should work. From my side, I will check what is wrong if you change the type after a successful launch on the simulator,

Alvaro1dev commented 1 year ago

It worked, thank you!