Skip to content

Launch/Sync on iOS fails because no teamId is specified #93

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

Closed
pkoleva opened this issue Nov 9, 2016 · 7 comments
Closed

Launch/Sync on iOS fails because no teamId is specified #93

pkoleva opened this issue Nov 9, 2016 · 7 comments
Assignees
Milestone

Comments

@pkoleva
Copy link
Contributor

pkoleva commented Nov 9, 2016

Prerequisites:
Xcode 8

Error in console:
Xcode 8 requires a team id to be specified when building for device.
You can specify the team id by setting the DEVELOPMENT_TEAM setting in build.xcconfig file located in App_Resources folder of your app, or by using the --teamId option when calling run, debug or livesync commnads.

Workarround 1:
Add TeamID in App_Resources/iOS/build.xcconfig -> DEVELOPMENT_TEAM

Workarround 2:
Add "tnsArgs": "--teamId TeamID" in launch.json Launch on iOS and Sync on iOS options

@yyosifov
Copy link
Contributor

yyosifov commented Apr 6, 2017

@pkoleva Here's what I saw, when tested now with tns @ 2.5.4:

Building project...

Xcode 8 requires a team id to be specified when building for device.
You can specify the team id by setting the DEVELOPMENT_TEAM setting in build.xcconfig file located in App_Resources folder of your app, or by using the --teamId option when calling run, debug or livesync commnads.

Found and using the following development team installed on your system: Yosif Yosifov (xxxxxx)

Build settings from command line:
ARCHS = armv7

And the App built & ran successfully on the device.

@pkoleva
Copy link
Contributor Author

pkoleva commented Apr 13, 2017

The problem appears when you have more than one team on your machine

@ButterMeWaffle
Copy link

I have removed all extra teams from xcode, specified the team id# in the build.xcconfig file, AND i have used the --teamId option. Still throws the same error. Any ideas?

@yyosifov yyosifov self-assigned this Apr 20, 2017
@yyosifov
Copy link
Contributor

@SamuelGRwebfab Where did you make changes? Here are the steps I've tried.

If you want to set the teamId in the build.xcconfig:

  • Open app/App_Resources/iOS/build.xcconfig
  • And add DEVELOPMENT_TEAM = 8TxxxxxxxF;

If you want to pass it as tnsArgs in the vscode configuration:

  • Open .vscode/launch.json
  • Add to the "name": "Launch on iOS" configuration the tnsArgs option with your teamId:
    "tnsArgs": "--teamId 8TxxxxxxxF"

Let me know if these 2 ways work for you?

If it still doesn't work, can you please share your tns --version, node --version, 'vscode version', NativeScript Extension version and some part of your configuration files? (xcconfig/launch.json)

Best,
Yosif

@ButterMeWaffle
Copy link

@yyosifov I should have updated my post. I managed to get past this error by removing all traces of my certs, and then just putting them back, 3 times. This completely resolved my signing issue however now I have another, but this new issue is unrelated to this post.

@yyosifov
Copy link
Contributor

@SamuelGRwebfab Sorry for your troublers. Glad to hear it's working for you now!

I've created a PR which opens a Quick Pick selector whenever you have multiple Teams, therefore I hope we won't have this issue in the near future.

@ButterMeWaffle
Copy link

@yyosifov I wouldnt say its working but i dont have signing issues now! That sounds great tho!

@pkoleva pkoleva added this to the 0.7.0 milestone Apr 26, 2017
@pkoleva pkoleva closed this as completed May 11, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants