DenisovAV / flutter_tv

232 stars 40 forks source link

Need help to integrate the flutter tv #17

Closed Rahil-Griphhy closed 6 months ago

Rahil-Griphhy commented 11 months ago

hello i'm trying to integrate flutter tv example and follow the all the steps but still facing the issues. can anyone help me to to integrate flutter tv?

@aleksandr-denisov-epam , @alde0615-zz & @DenisovAV

DenisovAV commented 11 months ago

Hi Rahil, could you please give me more details? Flutter version, device type

Rahil-Griphhy commented 11 months ago

Flutter version : 3.10.5 device type: tvOS

Follow your example of flutter tv

DenisovAV commented 11 months ago

of course tvOS, we are running the Flutter app for Apple TV :) I mean simulator or real device, if the real device which version of OS, and if simulator which version of CPU and macOS do you have

Rahil-Griphhy commented 11 months ago

currently running in simulator Xcode version -> Version 14.3.1 (14E300c) Mac mini 2023 / Apple M2 (8 core) Mac OS -> 13.4 tv OS -> 16.4

On Wed, 6 Dec 2023 at 14:29, Sasha Denisov @.***> wrote:

of course tvOS, we are running the Flutter app for Apple TV :) I mean simulator or real device, if the real device which version of OS, and if simulator which version of CPU and macOS do you have

— Reply to this email directly, view it on GitHub https://github.com/DenisovAV/flutter_tv/issues/17#issuecomment-1842459988, or unsubscribe https://github.com/notifications/unsubscribe-auth/BDA32MRQRM33NQXFSVU73LTYIAXWBAVCNFSM6AAAAABAFLTZ4SVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNBSGQ2TSOJYHA . You are receiving this because you modified the open/close state.Message ID: @.***>

DenisovAV commented 11 months ago

Could you yry to delete the project folder, clone it again, launch the script and send me the stack trace, your trace is not from the first launch

Rahil-Griphhy commented 11 months ago

sure wait a min

Rahil-Griphhy commented 11 months ago

rahilgriphhy@Rahils-Mac-mini flutter_tv % sh scripts/run_apple_tv.sh

Cleaning Xcode workspace... 2,298ms Cleaning Xcode workspace... 1,554ms

[!] A license was specified in podspec custom_shared_preferences_ios but the file does not exist - /Users/rahilgriphhy/Desktop/flutter_tv/ios/.symlinks/plugins/custom_shared_preferences_ios/LICENSE

[!] Unable to read the license file ../LICENSE for the spec custom_shared_preferences_ios (0.0.1)

[!] Unable to read the license file ../LICENSE for the spec custom_shared_preferences_ios (0.0.1)

[!] 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).

Faced the issue

Screenshot 2023-12-06 at 3 19 51 PM

DenisovAV commented 11 months ago

As I see, you didn't change the path in scripts, the second step in the manual.

You need to change /Aleksandr_Denisov/Work/engine to your path

image
Rahil-Griphhy commented 11 months ago

already changed

Screenshot 2023-12-06 at 3 31 57 PM

Screenshot 2023-12-06 at 3 31 50 PM

Rahil-Griphhy commented 11 months ago

this is because of this,

Screenshot 2023-12-06 at 3 34 51 PM

need to change in this file too?? also tvos folder have the same file

DenisovAV commented 11 months ago

It should be changed automatically by script. But there was exception, have no idea why:

sed -i 's#FLUTTER_LOCAL_ENGINE[[:space:]]=[[:space:]].*;#FLUTTER_LOCAL_ENGINE = "/Users/rahilgriphhy/Desktop";#g' Runner.xcodeproj/project.pbxproj sed: 1: "Runner.xcodeproj/projec ...": invalid command code R

Ok, let's change it manually. You can do it in XCode directly, or in pbxproj file.

And can you show me your run_appletv.sh file?

Rahil-Griphhy commented 11 months ago

Screenshot 2023-12-06 at 4 27 36 PM

========================================

output after changing manually

Screenshot 2023-12-06 at 4 26 18 PM

DenisovAV commented 11 months ago

can you send full stack trace

Rahil-Griphhy commented 11 months ago

rahilgriphhy@Rahils-Mac-mini flutter_tv % sh scripts/run_apple_tv.sh

Cleaning Xcode workspace... 1,595ms Cleaning Xcode workspace... 1,548ms

[!] A license was specified in podspec custom_shared_preferences_ios but the file does not exist - /Users/rahilgriphhy/Desktop/flutter_tv/ios/.symlinks/plugins/custom_shared_preferences_ios/LICENSE

[!] Unable to read the license file ../LICENSE for the spec custom_shared_preferences_ios (0.0.1)

[!] Unable to read the license file ../LICENSE for the spec custom_shared_preferences_ios (0.0.1)

[!] 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).

Rahil-Griphhy commented 11 months ago

Screenshot 2023-12-06 at 4 39 11 PM Screenshot 2023-12-06 at 4 39 19 PM

Rahil-Griphhy commented 11 months ago

iOS error video uploaded on we transfer you can checkout from there => https://we.tl/t-O4LhGswn2K

Build Runner_2023-12-07T10-24-52.txt

Rahil-Griphhy commented 11 months ago

@DenisovAV any update?

DenisovAV commented 11 months ago

Looks like something wrong with your flutter and dart versions

../lib/main.dart: Warning: Interpreting this as package URI, 'package:flutter_tv/main.dart'. ../lib/main.dart:1:1: Error: The specified language version is too high. The highest supported language version is 2.16. import 'package:flutter/material.dart';

Check flutter doctor and dart -version commands

Rahil-Griphhy commented 11 months ago

i use flutter 3.10.5 & dart 3.0.5 (stable)

DenisovAV commented 9 months ago

I was able to reproduce this error message, it happens when your engine version is lower than your Flutter version. Please check your version of engine and flutter version