Coder Social home page Coder Social logo

Comments (11)

fastlane-bot avatar fastlane-bot commented on December 7, 2022 1

It seems like you have not included the output of fastlane env
To make it easier for us help you resolve this issue, please update the issue to include the output of fastlane env 👍

from fastlane.

max-ott avatar max-ott commented on December 7, 2022 1

Ruby is case sensitive. spaceship::connectapi.login in line 3 might be the issue. This needs to be Spaceship::ConnectAPI.login

from fastlane.

max-ott avatar max-ott commented on December 7, 2022

I think there are multiple ways to do this, not sure if you are doing it the easy way 😇

This has been working for me:

connect_app = Spaceship::ConnectAPI::App.find(bundle_id)
beta_groups = connect_app.get_beta_groups
asc_group = connect_app.create_beta_group(group_name: "ASC", is_internal_group: true)
all_users = Spaceship::ConnectAPI.get_users
beta_testers = {}
	all_users.each do |u|
		next if u.email.include? "xyz"
		beta_testers << {email: u.email}
	end
Spaceship::ConnectAPI.post_bulk_beta_tester_assignments(beta_group_id: asc_group.id, beta_testers: beta_testers)

You can of course adjust your logic how you select the users. In this case I'm iterating over all internal users and add them to the new group called "ASC" (= App Store Connect)

from fastlane.

arpitplutus avatar arpitplutus commented on December 7, 2022

@max-ott I checked by using your snippet. but I am facing some errors here are the my lane for testers

 `desc "Add internal testers"
  lane :add_internal_tester do
  client = spaceship::connectapi.login(‘[[email protected]](mailto:[email protected])’, ‘password’)
  client.select_team(team_name: ’Test Inc.’)

  app = Spaceship::ConnectAPI::App.find(‘bundle_id’)

  client = Spaceship::TestFlight::Base.client

  tester = Spaceship::TestFlight::Tester.new
  tester.first_name = ‘User’ 
 tester.last_name = ‘1’
 tester.email = ‘[[email protected]](mailto:[email protected])’
 groups = Spaceship::TestFlight::Group.add_tester_to_groups!(tester: tester, app: ‘[email protected] , groups: [‘group_name’])

connect_app = Spaceship::ConnectAPI::App.find(bundle_id)
beta_groups = connect_app.get_beta_groups
asc_group = connect_app.create_beta_group(group_name: "Internal Testers", is_internal_group: true)
all_users = Spaceship::ConnectAPI.get_users
beta_testers = {}
all_users.each do |u|
  next if u.email.include? "xyz"
  beta_testers << {email: u.email}
end
Spaceship::ConnectAPI.post_bulk_beta_tester_assignments(beta_group_id: asc_group.id, beta_testers: beta_testers)
end`

when I am trying to run this lane it's throwing an error as per the screenshot below

Screenshot 2022-07-27 at 11 43 21 AM

Can you guide me on this?

from fastlane.

arpitplutus avatar arpitplutus commented on December 7, 2022

@max-ott the above error [!] Could not find action, lane or variable 'spaceship' has been resolved as per your suggestion thanks.
But I am facing new error like screenshot attached

Screenshot 2022-07-27 at 8 37 14 PM

Kindly help me on this as I am not much aware about ruby

Thanks in advance

from fastlane.

arpitplutus avatar arpitplutus commented on December 7, 2022

@fastlaneTeam can anyone help me on this?
Any help would be appreciable.

from fastlane.

mlch911 avatar mlch911 commented on December 7, 2022

@fastlaneTeam can anyone help me on this? Any help would be appreciable.

You should use Spaceship::ConnectAPI::Client.login('AppleID', 'password').
Not Spaceship::ConnectAPI.login

from fastlane.

arpitplutus avatar arpitplutus commented on December 7, 2022

@fastlaneTeam can anyone help me on this? Any help would be appreciable.

You should use Spaceship::ConnectAPI::Client.login('AppleID', 'password'). Not Spaceship::ConnectAPI.login

It's asking for two factor authentication
Can you please help us on this?

from fastlane.

mlch911 avatar mlch911 commented on December 7, 2022

@fastlaneTeam can anyone help me on this? Any help would be appreciable.

You should use Spaceship::ConnectAPI::Client.login('AppleID', 'password'). Not Spaceship::ConnectAPI.login

It's asking for two factor authentication Can you please help us on this?

You can read the source code. There are two ways to login your account.

def self.login(user = nil, password = nil, use_portal: true, use_tunes: true, portal_team_id: nil, tunes_team_id: nil, team_name: nil, skip_select_team: false)

def self.auth(key_id: nil, issuer_id: nil, filepath: nil, key: nil, duration: nil, in_house: nil)

If you use Spaceship::ConnectAPI::Client.login, you need to input two factor authentication.
If you use Spaceship::ConnectAPI::Client.auth, you can login in directly.

But I tried the auth method and it wouldn't work. Don't know what's wrong with it.
Finally, I chose to use the login method.

from fastlane.

fastlane-bot avatar fastlane-bot commented on December 7, 2022

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates.

Please make sure to update to the latest fastlane version and check if that solves the issue. Let us know if that works for you by adding a comment 👍

Friendly reminder: contributions are always welcome! Check out CONTRIBUTING.md for more information on how to help with fastlane and feel free to tackle this issue yourself 💪

This issue will be auto-closed if there is no reply within 1 month.

from fastlane.

fastlane-bot avatar fastlane-bot commented on December 7, 2022

This issue will be auto-closed because there hasn't been any activity for a few months. Feel free to open a new one if you still experience this problem 👍

from fastlane.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.