[SWIFT] Create a SandBox account with fastlane spaces ip

With fastlane spaces ip, you can easily perform various operations on Apple Store Connect with commands. This time, I will introduce how to create a SandBox account from the introduction of fastlane.

Introduction of fastlane

Installation

RubyGems

$ sudo gem install fastlane -NV

Homebrew

$ brew install fastlane

setup

$ fastlane init

After setup, the fastlane directory will be created. I will describe various Fastfile in it, but there is also an official method to describe thisFastfile in Swift.

$ fastlane init swift

This time, I will omit the simple setup after this described in Swift. Fastlane.swift docs

Create a SandBox account on fastlane

Write the following in Fastfile.

platform :ios do
  desc "Create Sandbox Account"
  lane :create_tester do
    require 'pp'
    require 'spaceship'

    Spaceship::Tunes.login("mail address", "password")
    desc "Select Team ID if you have multiple teams in your account"
    desc "If you don't know your team ID Spaceship::Tunes.select_If you write only the team, you can select from the candidates later"
    Spaceship::Tunes.select_team(team_id: "Team ID")

    tester = Spaceship::ConnectAPI::SandboxTester.create(
      first_name: "test",
      last_name: "name",
      email: "[email protected]",
      password: "Test1234",
      confirm_password: "Test1234",
      secret_question: "Question",
      secret_answer: "Answer",
      birth_date: "1993-03-01",
      app_store_territory: "USA"
    )
    pp tester
  end
end

Please change the information of tester arbitrarily.

Running the command in the console will create a SandBox account!

fastlane create_tester

Reference: fastlane doc

Recommended Posts

Create a SandBox account with fastlane spaces ip
Create a playground with Xcode 12
Create a Vue3 environment with Docker!
Create exceptions with a fluid interface
Create a Maven project with a command
Create a jar file with the command
[Rails6] Create a new app with Rails [Beginner]
Create a simple web application with Dropwizard
Create a simple on-demand batch with Spring Batch
Create a GUI JSON Viewer with Ruby/GTK3
[Rails withdrawal] Create a simple withdrawal function with rails
Create a MySQL environment with Docker from 0-> 1
Create a simple bar chart with MPAndroidChart
Create a temporary class with new Object () {}
[Rails 5] Create a new app with Rails [Beginner]
Create a website with Spring Boot + Gradle (jdk1.8.x)
Create a simple search app with Spring Boot
Create a CSR with extended information in Java
Create a simple bulletin board with Java + MySQL
[Rails] rails new to create a database with PostgreSQL
[Windows] [IntelliJ] [Java] [Tomcat] Create a Tomcat9 environment with IntelliJ
Let's create a timed process with Java Timer! !!
[Java] Create a collection with only one element
Create a team chat with Rails Action Cable
Create a multi-key map with the standard library
Create a web api server with spring boot
Create a Spring Boot development environment with docker
Create a Jar file with two lines of command
Create an EC site with Rails 5 ⑨ ~ Create a cart function ~
[Beginner] Create a competitive game with basic Java knowledge
Create a widget template for iOS14 with Intent Configuration.
Create a Chat app with WebSocket (Tyrus) + libGDX + Kotlin
[Note] Create a java environment from scratch with docker
Create a Service with an empty model Liferay 7.0 / DXP
Create a simple demo site with Spring Security with Spring Boot 2.1