DenisovAV / flutter_tv

232 stars 40 forks source link

PathNotFoundException: Cannot open file #39

Open nicaho opened 1 week ago

nicaho commented 1 week ago

my machine: Apple M2 Mac mini my flutter version: 3.24.1 fvm flutter --version
Flutter 3.24.1 • channel stable • https://github.com/flutter/flutter.git Framework • revision 5874a72aa4 (3 months ago) • 2024-08-20 16:46:00 -0500 Engine • revision c9b9d5780d Tools • Dart 3.5.1 • DevTools 2.37.2

I git clone https://github.com/DenisovAV/flutter_tv and update FLUTTER_LOCAL_ENGINE in my local path export FLUTTER_LOCAL_ENGINE=/Users/nicaho/Downloads/project/flutter_engine/engine/src and my out files: /Users/nicaho/Downloads/project/flutter_engine/engine/src/out/host_debug_unopt_arm64 /Users/nicaho/Downloads/project/flutter_engine/engine/src/out/ios_debug_sim_unopt_arm64

When I sh scripts/run_apple_tv.sh

Encountered error while building for simulator.

[!] CocoaPods did not set the base configuration of your project because your project already has a custom config set. In order for CocoaPods integration to work at all, please either set the base configurations of the target Runner to Target Support Files/Pods-Runner/Pods-Runner.profile.xcconfig or include the Target Support Files/Pods-Runner/Pods-Runner.profile.xcconfig in your build configuration (Flutter/Release.xcconfig).

Then I run in Xcode, select "Apple TV 4K", tvOS is 15.0 I get the error Compling /Flutter/App.Framework arm64 └─engine /Users/nicaho/Downloads/project/flutter_engine/engine/src Build Mode debug └─Coping Flutter.framework └─Engine dart version 3.5.0 └─Compiling kernal result 7fcd8930-45c3-46b5-9c6a-987530e9779a Unhandled exception: PathNotFoundException: Cannot open file, path = '/Users/nicaho/Downloads/project/test-flutter-tv/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)

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

#2 _FileStreamConsumer.addStream. (dart:io/file_impl.dart:205) Command PhaseScriptExecution failed with a nonzero exit code How can I solve it, Thank you!