Open terminal and put on the command:
sudo gem install fastlane -NV
Open project folder in terminal and execute the command:
Fastfile – data about your account.
AppFile – file for script code.
fastlane match init
fastlane match appstore
fastlane match development
fastlane match method
fastlane run cert method
fastlane run sigh method
- update cocoapods
- load the cert and provision profiles, install/create them if need
- increment of build number by increment the last build number from
- build the project and make archive (all of subscription will be
- generated archive will be upload to testflight
- open for internal testers
fastlane run testflight_beta
brew install jenkins-lts
brew services start jenkins-lts
Source Code Management
Then enter “Branch specifier” which will be triggered for new build (default value is a master).
On this section we need pick two set up
Use secret text (s) or file (s):
Add variables by this rule: “Add”->”Secret text” put name of var in field “Variable” choose “specific credential” and press “Add” (before check that your credentials not exist otherwise pick from list). If you pressed the “Add” in open window pick “Kind”->”Secret text” and then enter “Secret”- your value of var, “ID”- name for pick list of this var (free name). Enter the next variables:
Open project folder on your mac and enter command:
fastlane spaceauth -u email@example.com
After execute a command, terminal ask you to copy generated cookie (as string) in your clipboard, copy string and put in as value for variable in Jenkins.
If you have enabled 2FA authentication you should set still a two variables.
After that, put on generated string as secret for variable.
After that, put on phone as a secret for variable. Your section will seem something like that.
Inject environment variables to the build process.
Set the “Property content” just put on this:
ngrok http port