Saturday, November 21, 2026
HomeiOS Developmentios - Unable to make use of VSCode's launch.js customized configuration to...

ios – Unable to make use of VSCode’s launch.js customized configuration to run my flutter app with customized Xcode scheme

[ad_1]

I made a customized Xcode Goal and Scheme for my flutter app as a way to run a improvement model of the app. I used to be capable of efficiently run the app (on a iOS Simulator) with the customized Xcode scheme utilizing flutter run myApp --flavor myApp-dev

Nonetheless, it is exhausting to debug when operating within the command line, so I needed to make use of VSCode to run it.

To do that, I added a brand new configuration in launch.js:

{
    // Use IntelliSense to study attainable attributes.
    // Hover to view descriptions of current attributes.
    // For extra info, go to: https://go.microsoft.com/fwlink/?linkid=830387
    "model": "0.2.0",
    "configurations": [
        {
            "name": "myApp",
            "program": "lib/main.dart",
            "request": "launch",
            "type": "dart"
        },
        {
            "name": "myApp-dev",
            "program": "lib/main.dart",
            "request": "launch",
            "type": "dart",
            "args": ["--flavor myApp-dev"]
        }
    ]
}

The --flavor possibility was added with the args attribute, and it does appear to run flutter run myApp --flavor myApp-dev once I click on “Begin Debugging” with the brand new configuration in VSCode, as a result of offering an incorrect possibility (e.g. “-flavor”) raises an error.

Nonetheless, my app nonetheless appears to run with out the customized Xcode scheme I made. I am unable to determine if that is the precise solution to do it, or what inflicting the “args” attribute to not appear to work as I anticipated it to.

[ad_2]

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments