Closed keanallen closed 1 year ago
Try to remove the folder, and clone from scratch before run script
i got this message: Built /Volumes/NVME/Development/example/flutter_tv/build/ios/iphonesimulator/Runner.app.
Can you share the whole trace when you run scripts for the first time after cloning? The previous stack trace is not first launch
Sure.
❯ sh scripts/run_apple_tv.sh
+ export FLUTTER_LOCAL_ENGINE=/Volumes/NVME/Development/experiments/custom-flutter-engine/3.10.5
+ FLUTTER_LOCAL_ENGINE=/Volumes/NVME/Development/experiments/custom-flutter-engine/3.10.5
+ fvm flutter clean
Cleaning Xcode workspace... 1,971ms
Cleaning Xcode workspace... 1,786ms
Deleting .dart_tool... 1ms
Deleting Generated.xcconfig... 0ms
Deleting flutter_export_environment.sh... 0ms
Deleting ephemeral... 0ms
+ fvm flutter pub get
Resolving dependencies...
_fe_analyzer_shared 22.0.0 (62.0.0 available)
analyzer 1.7.2 (6.0.0 available)
args 2.4.0 (2.4.2 available)
bloc 7.2.1 (8.1.2 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)
cli_util 0.3.5 (0.4.0 available)
collection 1.17.1 (1.18.0 available)
crypto 3.0.2 (3.0.3 available)
dart_style 2.1.1 (2.3.2 available)
file 6.1.4 (7.0.0 available)
flutter_bloc 7.3.3 (8.1.3 available)
glob 2.1.1 (2.1.2 available)
json_annotation 4.1.0 (4.8.1 available)
json_serializable 4.1.4 (6.7.1 available)
logging 1.1.1 (1.2.0 available)
matcher 0.12.15 (0.12.16 available)
material_color_utilities 0.2.0 (0.8.0 available)
pub_semver 2.1.3 (2.1.4 available)
pubspec_parse 1.1.0 (1.2.3 available)
source_gen 1.0.3 (1.4.0 available)
source_span 1.9.1 (1.10.0 available)
stack_trace 1.11.0 (1.11.1 available)
stream_channel 2.1.1 (2.1.2 available)
test_api 0.5.1 (0.6.1 available)
typed_data 1.3.1 (1.3.2 available)
watcher 1.0.2 (1.1.0 available)
yaml 3.1.1 (3.1.2 available)
Got dependencies!
+ fvm flutter build ios --simulator
Building dev.flutter.tv.flutterTv for simulator (ios)...
Updating minimum iOS deployment target to 11.0.
Upgrading project.pbxproj
Upgrading AppFrameworkInfo.plist
Updating project for Xcode compatibility.
Upgrading project.pbxproj
Upgrading Runner.xcscheme
Upgrading Info.plist
Removing script build phase dependency analysis.
Adding input path to Thin Binary build phase.
Running Xcode build...
Xcode build done. 18.5s
Built /Volumes/NVME/Development/example/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 22.0.0 (62.0.0 available)
analyzer 1.7.2 (6.0.0 available)
args 2.4.0 (2.4.2 available)
bloc 7.2.1 (8.1.2 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)
cli_util 0.3.5 (0.4.0 available)
collection 1.17.1 (1.18.0 available)
crypto 3.0.2 (3.0.3 available)
dart_style 2.1.1 (2.3.2 available)
file 6.1.4 (7.0.0 available)
flutter_bloc 7.3.3 (8.1.3 available)
glob 2.1.1 (2.1.2 available)
json_annotation 4.1.0 (4.8.1 available)
json_serializable 4.1.4 (6.7.1 available)
logging 1.1.1 (1.2.0 available)
matcher 0.12.15 (0.12.16 available)
material_color_utilities 0.2.0 (0.8.0 available)
pub_semver 2.1.3 (2.1.4 available)
pubspec_parse 1.1.0 (1.2.3 available)
source_gen 1.0.3 (1.4.0 available)
source_span 1.9.1 (1.10.0 available)
stack_trace 1.11.0 (1.11.1 available)
stream_channel 2.1.1 (2.1.2 available)
test_api 0.5.1 (0.6.1 available)
typed_data 1.3.1 (1.3.2 available)
watcher 1.0.2 (1.1.0 available)
yaml 3.1.1 (3.1.2 available)
Got dependencies in ..!
+ pod install
Analyzing dependencies
Downloading dependencies
Installing Flutter (1.0.0)
Generating Pods project
Integrating client project
Pod installation complete! There is 1 dependency from the Podfile and 1 total pod 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` 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`).
+ sh ../scripts/copy_framework.sh debug_sim FLUTTER_LOCAL_ENGINE
Coping Flutter.framework (debug-simulator)...
+ sed -i 's#FLUTTER_LOCAL_ENGINE[[:space:]]=[[:space:]].*;#FLUTTER_LOCAL_ENGINE = "/Volumes/NVME/Development/experiments/custom-flutter-engine/3.10.5";#g' Runner.xcodeproj/project.pbxproj
sed: 1: "Runner.xcodeproj/projec ...": invalid command code R
+ open Runner.xcworkspace
Everything looks good. As a result of script execution, you should get opened XCode with a prepared project. You should choose Rosetta Simulator as a target and press the run button. If you don't see Rosetta simulators, take a look at the image, and choose "Show both"
what simulator should i use? apple tv simulator right?
Hi @DenisovAV I got it working. I've successfully run your example app in my apple tv simulator. Thank you so much!
Now, we have an existing flutter tv app that is currently working in android tv and amazon firetv.
Question:
lib
folder and paste it into this repo?
I got this error when running the
run_apple_tv.sh
scriptNote: I'm using mac mini m1