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

Cannot pass --provision via "tnsArgs" of launch.json #256

Open
VladimirAmiorkov opened this issue May 14, 2019 · 0 comments
Open

Cannot pass --provision via "tnsArgs" of launch.json #256

VladimirAmiorkov opened this issue May 14, 2019 · 0 comments
Labels

Comments

@VladimirAmiorkov
Copy link

Environment
Provide version numbers for the following components (information can be retrieved by running tns info in your project folder or by inspecting the package.json of the project):

  • CLI: 5.3.4
  • VSCode: 1.33.1 (1.33.1)

Describe the bug
Using this configuration in order to pass provisioning profile to deploy on real device:

{
    "name": "Launch on iOS",
    "type": "nativescript",
    "request": "launch",
    "platform": "ios",
    "appRoot": "${workspaceRoot}",
    "sourceMaps": true,
    "tnsArgs": ["--provision MyTestPropfile"],
    "watch": true
}

I am getting an error: The options --provision and --teamId are mutually exclusive.. Deleting the nativescript.iosTeamId from the setting.json in .vscode does not help since on next run the extension again asks for teamId.

To Reproduce
Add the following configuration to the launch.json:

{
    "name": "Launch on iOS",
    "type": "nativescript",
    "request": "launch",
    "platform": "ios",
    "appRoot": "${workspaceRoot}",
    "sourceMaps": true,
    "tnsArgs": ["--provision MyTestPropfile"],
    "watch": true
}

Expected behavior
The debug session would begin on the connected to real device using the provisioning profile from --provision

Output

[NativeScriptCli] execute: tns --analyticsClient VSCode --version
[NSDebugAdapter] Using tns CLI v5.3.4 on path 'tns'

[NSDebugAdapter] Running tns command...

[NSDebugAdapter] Using iOS Team ID '****', you can change this in the workspace settings.

[NativeScriptCli] execute: tns --analyticsClient VSCode debug ios --watch --syncAllFiles --provision NativeScriptDevProfile --teamId W7TGC3P93K
[NSDebugAdapter] Watching the tns CLI output to receive a connection token

The options --provision and --teamId are mutually exclusive.

[NSDebugAdapter] The tns command finished its execution with code 127.

The tns command finished its execution with code 127
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants