Skip to content

Fastlane notes

IOS

Step 0:

Access to 2 websites: - For certs - For App Store access

If not installed:

sudo gem install fastlane --verbose
xcode-select --install # Ensure Xcode command line tools
gem cleanup # optional recommendation

Step 1:

fastlane match init
A setup wizard that detects and asks steps along the way There is possible ways to store it:
1. Git
2. Google_cloud
3. s3

Step 2:

change directiory and set it:

cd ios
fastlane init

Outside pipelines

When fastlane is not running through the pipelines IOS is set up so version number is being used by package.json - which means in a major, minor or patch release increment the number.

The app.json contains appleTeamId and display name, and logo for the app. And should also work with adaptiveIconfor android

When running fastlane beta (IOS)

Important

  1. Sign in to https://appleid.apple.com.
  2. Head over to App-Specific Passwords 1. make a password and call it Fastlane or whatever 2. For further usage put it inside .envas

        export FASTLANE_APPLE_APPLICATION_SPECIFIC_PASSWORD="YOUR-SPEC-PASS-WORD"
    

    1. from the root of the project run:
         cd ios
         export FASTLANE_APPLE_APPLICATION_SPECIFIC_PASSWORD="YOUR-SPEC-PASS-WORD
         fastlane beta
      
      watch the compilation and see:
      Successfully distributed build to Internal testers 🚀
      
          +----------------------------------------------+
          |               fastlane summary               |
          +------+-------------------------+-------------+
          | Step | Action                  | Time (in s) |
          +------+-------------------------+-------------+
          | 1    | default_platform        | 0           |
          | 2    | increment_version_numb  | 0           |
          |      | er                      |             |
          | 3    | increment_build_number  | 0           |
          | 4    | build_app               | 454         |
          | 5    | upload_to_testflight    | 219         |
          +------+-------------------------+-------------+