Skip to content
This repository has been archived by the owner on Nov 19, 2018. It is now read-only.

Within Fastlane: Cert asks for the team id ignoring the Appfile #28

Closed
besi opened this issue Aug 3, 2015 · 10 comments
Closed

Within Fastlane: Cert asks for the team id ignoring the Appfile #28

besi opened this issue Aug 3, 2015 · 10 comments
Labels

Comments

@besi
Copy link

besi commented Aug 3, 2015

My Appfile contains a team_name as well as the team_id (uncommented).
In my Fastfile I run cert() before running sigh(adhoc: true).

I would expect, that I don't have to enter the Team in the prompt, however, when I run fastlane beta, I still get asked to specify the team:

[16:39:25]: ------------------
[16:39:25]: --- Step: cert ---
[16:39:25]: ------------------
[16:39:30]: Starting login
Multiple teams found, please enter the number of the team you want to use: 
1) XXXXXXX "SomeCompany Ltd." (Company/Organization)
2) YYYYYYY "John Doe" (Individual)
2
[16:50:52]: Successfully logged in

I plan to run fastlane soon on my CI environment, so a prompt like this won't be possible so I am wondering how to get rid of this prompt.

@KrauseFx
Copy link
Contributor

KrauseFx commented Aug 3, 2015

Could you please share your Appfile? Are you using the for_platform or for_lane block?

You're right, cert shouldn't ask you for the team.

@besi
Copy link
Author

besi commented Aug 3, 2015

My Appfile:

app_identifier "com.company.bundleid" # The bundle identifier of your app
apple_id "john.doe@gmail.com" # Your Apple email address

# You can uncomment any of the lines below and add your own
# team selection in case you're in multiple teams

team_name "John Doe"
team_id "YYYYYYY"

# you can even provide different app identifiers, Apple IDs and team names per lane:
# https://github.com/KrauseFx/fastlane/blob/master/docs/Advanced.md#the-appfile

This is how I call the cert():

platform :ios
  # ....
  desc "Submit a new Beta Build to Apple TestFlight"
  desc "This will also make sure the profile is up to date"
  lane :beta do
    # snapshot
    cert
    sigh(adhoc: true)
    deliver(beta: true)

    # sh "your_script.sh"
    # You can also use other beta testing services here
  end
end

@besi
Copy link
Author

besi commented Aug 31, 2015

It looks like I can get around this by using:

cert(team_id: 'YYYYYYY')

@tskulbru
Copy link

tskulbru commented Oct 1, 2015

I have the same problem with both cert, sigh and pem. similar appfile to the one above

@KrauseFx
Copy link
Contributor

KrauseFx commented Oct 1, 2015

@tskulbru are you using the latest version?

@triage
Copy link

triage commented Oct 12, 2015

@KrauseFx in case this helps, I'm having this same issue with:
sigh 0.10.9
fastlane 1.32.1
pretty much a vanilla appfile:

for_lane :staging do
    app_identifier 'xxxxxxx'
    apple_id "xxx@xxxxx.com"
    team_name "xxxxxx"
    team_id "xxxxx"
end

and fastfile:

lane :staging do
  cert
  sigh({
    app_identifier: "xxx.staging"
  })
  sigh({
    app_identifier: "xxx.watchkitapp"
  })
  sigh({
    app_identifier: "xxx.watchkitextension"
  })  
  cocoapods
  gym(
    scheme: "Staging",
    configuration: "Release",
  )
  deliver(
     beta: true
  )
end

btw thank you so much for the killer suite of tools that is fastlane 👍

I can confirm that @besi's fix works, however.

@marthinfreij
Copy link

I'm having this issue as well

Appfile

for_platform :ios do
  for_lane :beta do
    app_identifier "xxx.xxx.ios.beta"
    apple_id "name@xxx.xx"
    team_name "XXX XX"
    team_id "XXXXXXXXXX"
  end
end

Fastfile

fastlane_version "1.32.3"

default_platform :ios

platform :ios do
  lane :beta do
    cert
  end
end

Console output

XXX:XXX xxxx$ fastlane ios beta
[09:04:24]: -------------------------------------------------
[09:04:24]: --- Step: Verifying required fastlane version ---
[09:04:24]: -------------------------------------------------
[09:04:24]: fastlane version valid
[09:04:24]: ------------------------------
[09:04:24]: --- Step: default_platform ---
[09:04:24]: ------------------------------
[09:04:24]: Driving the lane 'ios beta' 🚀
[09:04:24]: ------------------
[09:04:24]: --- Step: cert ---
[09:04:24]: ------------------

+-------------+----------------------------------+
|                    Summary                     |
+-------------+----------------------------------+
| development | false                            |
| username    | name@xxx.xx |
| output_path | .                                |
+-------------+----------------------------------+

[09:04:25]: Starting login with user 'name@xxx.xx'
Multiple teams found, please enter the number of the team you want to use: 
1) XXXXXXXXXX "XXX XX" (Company/Organization)
2) YYYYYYYYYY "YYY YY" (In-House)

Passing team_id to cert works fine

@KrauseFx
Copy link
Contributor

@marthinfreij Could you try adding this to your Fastfile before calling cert:

team_id "your_team_id"

@marthinfreij
Copy link

@KrauseFx yep, then it works

@fastlanebot
Copy link

This issue was migrated to fastlane/fastlane#3116. Please post all further comments there.

fastlane is now a mono repo, you can read more about the change in our blog post. All tools are now available in the fastlane main repo 🚀

@fastlane-old fastlane-old locked and limited conversation to collaborators Mar 11, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

6 participants