Closed borisverbitckii closed 1 month ago
Hello, at this moment the last supported flutter version is 3.19.6, you should install fvm and switch your flutter version for the project to 3.19.6
so you need to download only 3.19.6 engine and unzip it to Users/borisverbitskii/Desktop/engine/src/out folder
please check all steps and try again
you keep talking about this 'out' folder? what do you mean?
i download a zip file, can't i jsut set the path to my download folder and then the name of the folder? ios_debug_sim_unopt_arm64
like can't this be ok?
export FLUTTER_LOCAL_ENGINE=/Users/me/code/apple-tv/flutter/ios_debug_sim_unopt_arm64
i have fvm installed and using 3.24.1
i am getting same error: 'Flutter/Flutter.h' file not found
please help thanks
Hi, you should unzip the files ios_debug_sim_unopt_arm64 and host_debug_unopt_arm64 to '/Users/me/code/apple-tv/flutter/out' folder and then update run_appletv.sh - export FLUTTER_LOCAL_ENGINE=/Users/me/code/apple-tv/flutter
thank you.. buti am still getting the same error. i see this error in terminal:
Are you trying with 3.24.1 ?
yes thanks. but what is the engine folder? and the src folder? i don't understand what that is or how to get it?
In my case 'engine' folder is root folder for everything, 'engine/src' is folder of source code of engine, 'engine/src/out' is folder for compiled engine. You don't need source code, but you need to have the same structure, so you need to unzip compiled engine to 'your_folder/out' and set up the path 'export FLUTTER_LOCAL_ENGINE=/Users/your_name/full_path/your_floder'
thank you. i don't know why this is so hard for me to figure out. what engine are you talking about? is one of the zip files you had the compiled engine? or do i need to get the compiled engine from somewhere else?
here's what i am doing:
i download host_debug_unopt_arm64.zip and extract to /Users/me/flutter-apple-tv-test so there is /Users/me/flutter-apple-tv-test/host_debug_unopt_arm64
i download ios_debug_sim_unopt_arm64.zip and extact to /Users/me/flutter-apple-tv-test so there is /Users/me/flutter-apple-tv-test/ios_debug_sim_unopt_arm64
i download/clone flutter-tv and extract to /Users/me/flutter-apple-tv-test so i have /Users/me/flutter-apple-tv-test/flutter-tv
then i modify the script to FLUTTER_LOCAL_ENGINE=/Users/me/flutter-apple-tv-test/out'
am i missing something here? thanks!
1) Extract host_debug_unopt_arm64.zip to /Users/me/flutter-apple-tv-test/out/ there will be /Users/me/flutter-apple-tv-test/out/host_debug_unopt_arm64 2) Extract ios_debug_sim_unopt_arm64.zip to /Users/me/flutter-apple-tv-test/out/ there will be /Users/me/flutter-apple-tv-test/out/ios_debug_sim_unopt_arm64 3) Clone flutter_tv to /Users/me/flutter-apple-tv-test there will be /Users/me/flutter-apple-tv-test/flutter-tv 4) Modify FLUTTER_LOCAL_ENGINE=/Users/me/flutter-apple-tv-test 5) Then run sh scripts/run_appletv.sh from Users/me/flutter-apple-tv-test/flutter-tv folder
Perfect thank you, it works!
Great! Good luck with your application
Thank you
I'm trying to run a demo application, but I keep encountering the issue that Flutter/Flutter.h cannot be found.
I've downloaded two archives to run the application on a tvOS simulator:
3.19.6 and 3.16.9
I've tried setting the FLUTTER_LOCAL_ENGINE in different ways:
export FLUTTER_LOCAL_ENGINE=/Users/borisverbitskii/Desktop/engine/src export FLUTTER_LOCAL_ENGINE=/Users/borisverbitskii/Desktop/engine In this case, the downloaded files were unpacked in these paths.
export FLUTTER_LOCAL_ENGINE=/Users/borisverbitskii/Desktop/engine/src/host_debug_unopt_arm64 export FLUTTER_LOCAL_ENGINE=/Users/borisverbitskii/Desktop/engine/src/ios_debug_sim_unopt_arm64 In this case, I pointed to the specific folders of the downloaded files.
===========================
I have an M1 Mac, so I use the command:
sh scripts/run_apple_tv.sh debug_sim_arm64
===========================
Here is my main Flutter version:
➜ flutter_tv git:(master) ✗ flutter --version Flutter 3.22.3 • channel stable • https://github.com/flutter/flutter.git Framework • revision b0850beeb2 (3 weeks ago) • 2024-07-16 21:43:41 -0700 Engine • revision 235db911ba Tools • Dart 3.4.4 • DevTools 2.34.3
===========================
My installation logs:
➜ flutter_tv git:(master) ✗ sh scripts/run_apple_tv.sh
ENGINE_TYPE=debug_sim_arm64
export FLUTTER_LOCAL_ENGINE=/Users/borisverbitskii/Desktop/engine/src
FLUTTER_LOCAL_ENGINE=/Users/borisverbitskii/Desktop/engine/src
'[' -d _ios ']'
sh scripts/switch_target.sh ios switching to 'ios'
fvm flutter clean Cleaning Xcode workspace... 1 246ms Cleaning Xcode workspace... 1 807ms Deleting build... 1ms Deleting .dart_tool... 0ms Deleting Generated.xcconfig... 0ms Deleting flutter_export_environment.sh... 0ms Deleting Flutter.podspec... 0ms Deleting ephemeral... 0ms Deleting .flutter-plugins-dependencies... 0ms Deleting .flutter-plugins... 0ms
fvm flutter pub get Resolving dependencies... _fe_analyzer_shared 61.0.0 (73.0.0 available) analyzer 5.13.0 (6.8.0 available) args 2.4.0 (2.5.0 available) bloc 7.2.1 (8.1.4 available) build 2.3.1 (2.4.1 available) build_config 1.0.0 (1.1.1 available) checked_yaml 2.0.1 (2.0.3 available) collection 1.18.0 (1.19.0 available) connectivity_plus_platform_interface 2.0.0 (2.0.1 available) crypto 3.0.2 (3.0.3 available) ! cupertino_icons 1.0.5 (overridden) (1.0.8 available) dart_style 2.3.2 (2.3.6 available) file 6.1.4 (7.0.0 available) flutter_bloc 7.3.3 (8.1.6 available) glob 2.1.1 (2.1.2 available) json_annotation 4.8.1 (4.9.0 available) json_serializable 6.7.1 (6.8.0 available) leak_tracker 10.0.0 (10.0.5 available) leak_tracker_flutter_testing 2.0.1 (3.0.5 available) leak_tracker_testing 2.0.1 (3.0.1 available) logging 1.1.1 (1.2.0 available) material_color_utilities 0.8.0 (0.12.0 available) meta 1.11.0 (1.15.0 available) path_provider_windows 2.2.1 (2.3.0 available) platform 3.1.4 (3.1.5 available) provider 6.0.5 (6.1.2 available) pub_semver 2.1.3 (2.1.4 available) pubspec_parse 1.1.0 (1.3.0 available) shared_preferences 2.2.3 (2.3.1 available) shared_preferences_android 2.2.2 (2.3.0 available) ! shared_preferences_foundation 2.4.0 from git https://github.com/DenisovAV/flutter-tvos-packages.git at 6166fd in packages/shared_preferences/shared_preferences_foundation (overridden) shared_preferences_linux 2.3.2 (2.4.0 available) ! shared_preferences_platform_interface 2.3.2 from git https://github.com/DenisovAV/flutter-tvos-packages.git at 6166fd in packages/shared_preferences/shared_preferences_platform_interface (overridden) shared_preferences_web 2.3.0 (2.4.1 available) shared_preferences_windows 2.3.2 (2.4.0 available) source_gen 1.4.0 (1.5.0 available) string_scanner 1.2.0 (1.3.0 available) test_api 0.6.1 (0.7.3 available) typed_data 1.3.1 (1.3.2 available) video_player 2.8.6 (2.9.1 available) video_player_android 2.4.14 (2.6.0 available) ! video_player_avfoundation 2.6.1 from git https://github.com/DenisovAV/flutter-tvos-packages.git at 6166fd in packages/video_player/video_player_avfoundation (overridden) ! video_player_platform_interface 6.2.2 from git https://github.com/DenisovAV/flutter-tvos-packages.git at 6166fd in packages/video_player/video_player_platform_interface (overridden) video_player_web 2.3.0 (2.3.2 available) vm_service 13.0.0 (14.2.4 available) watcher 1.0.2 (1.1.0 available) web 0.5.1 (1.0.0 available) win32 5.5.0 (5.5.3 available) yaml 3.1.1 (3.1.2 available) Got dependencies! 45 packages have newer versions incompatible with dependency constraints. Try
flutter pub outdated
for more information.fvm flutter build ios --simulator Building com.example.flutterTvMy for simulator (ios)... Running pod install... 617ms Running Xcode build...
└─Compiling, linking and signing... 4,9s Xcode build done. 27,1s Built /Users/borisverbitskii/Desktop/flutter_tv/build/ios/iphonesimulator/Runner.app.
sh scripts/switch_target.sh tvos switching to 'tvos'
cd ios
fvm flutter pub get Resolving dependencies in ..... _fe_analyzer_shared 61.0.0 (73.0.0 available) analyzer 5.13.0 (6.8.0 available) args 2.4.0 (2.5.0 available) bloc 7.2.1 (8.1.4 available) build 2.3.1 (2.4.1 available) build_config 1.0.0 (1.1.1 available) checked_yaml 2.0.1 (2.0.3 available) collection 1.18.0 (1.19.0 available) connectivity_plus_platform_interface 2.0.0 (2.0.1 available) crypto 3.0.2 (3.0.3 available) ! cupertino_icons 1.0.5 (overridden) (1.0.8 available) dart_style 2.3.2 (2.3.6 available) file 6.1.4 (7.0.0 available) flutter_bloc 7.3.3 (8.1.6 available) glob 2.1.1 (2.1.2 available) json_annotation 4.8.1 (4.9.0 available) json_serializable 6.7.1 (6.8.0 available) leak_tracker 10.0.0 (10.0.5 available) leak_tracker_flutter_testing 2.0.1 (3.0.5 available) leak_tracker_testing 2.0.1 (3.0.1 available) logging 1.1.1 (1.2.0 available) material_color_utilities 0.8.0 (0.12.0 available) meta 1.11.0 (1.15.0 available) path_provider_windows 2.2.1 (2.3.0 available) platform 3.1.4 (3.1.5 available) provider 6.0.5 (6.1.2 available) pub_semver 2.1.3 (2.1.4 available) pubspec_parse 1.1.0 (1.3.0 available) shared_preferences 2.2.3 (2.3.1 available) shared_preferences_android 2.2.2 (2.3.0 available) ! shared_preferences_foundation 2.4.0 from git https://github.com/DenisovAV/flutter-tvos-packages.git at 6166fd in packages/shared_preferences/shared_preferences_foundation (overridden) shared_preferences_linux 2.3.2 (2.4.0 available) ! shared_preferences_platform_interface 2.3.2 from git https://github.com/DenisovAV/flutter-tvos-packages.git at 6166fd in packages/shared_preferences/shared_preferences_platform_interface (overridden) shared_preferences_web 2.3.0 (2.4.1 available) shared_preferences_windows 2.3.2 (2.4.0 available) source_gen 1.4.0 (1.5.0 available) string_scanner 1.2.0 (1.3.0 available) test_api 0.6.1 (0.7.3 available) typed_data 1.3.1 (1.3.2 available) video_player 2.8.6 (2.9.1 available) video_player_android 2.4.14 (2.6.0 available) ! video_player_avfoundation 2.6.1 from git https://github.com/DenisovAV/flutter-tvos-packages.git at 6166fd in packages/video_player/video_player_avfoundation (overridden) ! video_player_platform_interface 6.2.2 from git https://github.com/DenisovAV/flutter-tvos-packages.git at 6166fd in packages/video_player/video_player_platform_interface (overridden) video_player_web 2.3.0 (2.3.2 available) vm_service 13.0.0 (14.2.4 available) watcher 1.0.2 (1.1.0 available) web 0.5.1 (1.0.0 available) win32 5.5.0 (5.5.3 available) yaml 3.1.1 (3.1.2 available) Got dependencies in ..! 45 packages have newer versions incompatible with dependency constraints. Try
flutter pub outdated
for more information.pod install Analyzing dependencies Downloading dependencies Generating Pods project Integrating client project Pod installation complete! There are 4 dependencies from the Podfile and 4 total pods installed.
[!] 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
toTarget Support Files/Pods-Runner/Pods-Runner.profile.xcconfig
or include theTarget Support Files/Pods-Runner/Pods-Runner.profile.xcconfig
in your build configuration (Flutter/Release.xcconfig
).Any idea what I'm doing wrong?