Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to run in real device #145882

Closed
rddewan opened this issue Mar 28, 2024 · 4 comments
Closed

Unable to run in real device #145882

rddewan opened this issue Mar 28, 2024 · 4 comments
Labels
in triage Presently being triaged by the triage team waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds

Comments

@rddewan
Copy link

rddewan commented Mar 28, 2024

Steps to reproduce

Run the using launch.json

{
    "version":"0.2.0",
    "configurations":[
        {
            "name":"dev Debug",
            "request":"launch",
            "type":"dart",
            "flutterMode":"debug",
            "args":["--flavor","dev"],
            "program":"lib/main_dev.dart"
        },
        {
            "name":"dev Profile",
            "request":"launch",
            "type":"dart",
            "flutterMode":"profile",
            "args":["--flavor","dev","--cache-sksl","--purge-persistent-cache"],
            "program":"lib/main_dev.dart"
        },
        {
            "name":"dev Release",
            "request":"launch",
            "type":"dart",
            "flutterMode":"release",
            "args":["--flavor","dev"],
            "program":"lib/main_dev.dart"
        },
        {
            "name":"qa Debug",
            "request":"launch",
            "type":"dart",
            "flutterMode":"debug",
            "args":["--flavor","qa"],
            "program":"lib/main_qa.dart"
        },
        {
            "name":"qa Profile",
            "request":"launch",
            "type":"dart",
            "flutterMode":"profile",
            "args":["--flavor","qa"],
            "program":"lib/main_qa.dart"
        },
        {
            "name":"qa Release",
            "request":"launch",
            "type":"dart",
            "flutterMode":"release",
            "args":["--flavor","qa"],
            "program":"lib/main_qa.dart"
        },
        {
            "name":"prod Debug",
            "request":"launch",
            "type":"dart",
            "flutterMode":"debug",
            "args":["--flavor","prod"],
            "program":"lib/main_prod.dart"
        },
        {
            "name":"prod Profile",
            "request":"launch",
            "type":"dart",
            "flutterMode":"profile",
            "args":["--flavor","prod"],
            "program":"lib/main_prod.dart"
        },
        {
            "name":"prod Release",
            "request":"launch",
            "type":"dart",
            "flutterMode":"release",
            "args":["--flavor","prod"],
            "program":"lib/main_prod.dart"
        },
    
    ]
}

Expected results

It should run on read device

Actual results

Automatically signing iOS for device deployment using specified development team in Xcode project: F86H3NTCG9
Xcode build done.                                           172.5s
You may be prompted to give access to control Xcode. Flutter uses Xcode to run your app. If access is not allowed, you can change this through your Settings > Privacy & Security > Automation.
Error starting debug session in Xcode: Xcode is not running
Could not run build/ios/iphoneos/Runner.app on 00008020-000A50210E08002E.
Try launching Xcode and selecting "Product > Run" to fix the problem:
  open ios/Runner.xcworkspace

Error launching application on Richard’s iPhone.

Exited (1).

Code sample

Code sample
[Paste your code here]

Screenshots or Video

Screenshots / Video demonstration

[Upload media here]

Logs

Logs
[Paste your logs here]

Flutter Doctor output

Doctor output
richard@Richards-MacBook-Pro ~ % flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.19.3, on macOS 14.3.1 23D60 darwin-arm64, locale
    en-TH)
[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0-rc3)
[✓] Xcode - develop for iOS and macOS (Xcode 15.1)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2022.3)
[✓] IntelliJ IDEA Ultimate Edition (version 2023.1.2)
[✓] IntelliJ IDEA Ultimate Edition (version 2023.1.2)
[✓] VS Code (version 1.87.2)
[✓] Connected device (4 available)
[✓] Network resources

• No issues found!
@huycozy huycozy added the in triage Presently being triaged by the triage team label Mar 28, 2024
@huycozy
Copy link
Member

huycozy commented Mar 28, 2024

Hi @rddewan
Which launch configuration do you select to run? Could you also share a minimal sample project that has been set up flavor so that we can check it?

@huycozy huycozy added the waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds label Mar 28, 2024
@rddewan
Copy link
Author

rddewan commented Apr 3, 2024

I have fixed this issue by downgrading to Xcode 15.1 from Xcode 15.3

@github-actions github-actions bot removed the waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds label Apr 3, 2024
@huycozy
Copy link
Member

huycozy commented Apr 3, 2024

It's still unclear which could cause the issue. If you persist with this, please provide more information as mentioned above. Thanks!

@huycozy huycozy added the waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds label Apr 3, 2024
Copy link

Without additional information, we are unfortunately not sure how to resolve this issue. We are therefore reluctantly going to close this bug for now.
If you find this problem please file a new issue with the same description, what happens, logs and the output of 'flutter doctor -v'. All system setups can be slightly different so it's always better to open new issues and reference the related ones.
Thanks for your contribution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in triage Presently being triaged by the triage team waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds
Projects
None yet
Development

No branches or pull requests

2 participants