spaceship/README.md in fastlane-2.4.0 vs spaceship/README.md in fastlane-2.5.0

- old
+ new

@@ -110,12 +110,16 @@ ## 2 Step Verification When your Apple account has 2 factor verification enabled, you'll automatically be asked to verify your identity using your phone. The resulting session will be stored in `~/.spaceship/[email]/cookie`. The session should be valid for about one month, however there is no way to test this without actually waiting for over a month. -Since your CI system probably doesn't allow you to input values (like the verification code), you can use `fastlane spaceauth`: +### Support for CI machines +#### Web sessions + +To generate a web session for your CI machine, use + ```sh fastlane spaceauth -u apple@krausefx.com ``` This will authenticate you and provide a string that can be transferred to your CI system: @@ -123,9 +127,19 @@ ``` export FASTLANE_SESSION='---\n- !ruby/object:HTTP::Cookie\n name: DES5c148586dfd451e55afbaaa5f62418f91\n value: HSARMTKNSRVTWFla1+yO4gVPowH17VaaaxPFnUdMUegQZxqy1Ie1c2v6bM1vSOzIbuOmrl/FNenlScsd/NbF7/Lw4cpnL15jsyg0TOJwP32tC/NguPiyOaaaU+jrj4tf4uKdIywVaaaFSRVT\n domain: idmsa.apple.com\n for_domain: true\n path: "/"\n secure: true\n httponly: true\n expires: 2016-04-27 23:55:56.000000000 Z\n max_age: \n created_at: 2016-03-28 16:55:57.032086000 -07:00\n accessed_at: 2016-03-28 19:11:17.828141000 -07:00\n' ``` Copy everything from `---\n` to your CI server and provide it as environment variable named `FASTLANE_SESSION`. + +#### Transporter + +If you want to upload builds to TestFlight/iTunes Connect from your CI, you have to generate an application specific password: + +1. Visit [appleid.apple.com/account/manage](https://appleid.apple.com/account/manage) +1. Generate a new application specific password +1. Provide the application specific password using an environment variable `FASTLANE_APPLE_APPLICATION_SPECIFIC_PASSWORD`. + +Alternatively you can enter the password when you're asked the first time _fastlane_ uploads a build. ### _spaceship_ in use All [fastlane tools](https://fastlane.tools) that communicate with Apple's web services in some way, use _spaceship_ to do so.