Building My Tours & STQRY

Created by Glen Barnes, Modified on Wed, 31 Jan 2024 at 07:14 AM by Glen Barnes

Time to build!

To begin open iTerm if it's not already open.

Alright, let's get building!

 

tenor.gif

 

 

STQRY:

This is the directory for STQRY builds:

cd mytours-rn

The first step is to building a STQRY app is setting it up.

be fastlane setup_app app_id:[appid#]

Once the app is set up you can build iOS with the command below. This will also provision the app if it hasn't been provisioned before. 

Quick note on provisioning: As with the My Tours iOS build you need to make sure the Apple developer and connect login email and team IDs are entered in to the app details on the My Tours' backend.

be fastlane ios build

Once the build is done you can do the beta. This will push the build up to the app store.

be fastlane ios beta

Next it's time to build Android:

be fastlane android build

Once it's done running the command an APK/AAB will be placed in the output folder.

Android app signing https://docs.google.com/document/d/1m-tnh7CHPqiC3r5OiYF6LdKr8elCqQoufklKhBRRy24/edit

Here are some more useful commands:

be fastlane lanes

If you want to see all the available fastlane commands then enter:

be fastlane ios version_bump skip_version_bump:true build_number:[new build number]
be fastlane android version_bump skip_version_bump:true build_number:[builder number]

If you need to increment the version number.

git pull

This will pull down any new commits to the branch. Try do this regularly before building. At least once at the start of the day.  

git stash

 This temporarily stashes changes you've made to your working copy so you can work on something else, and then come back and re-apply them later on. You'll likely need to do this before changing the branch using the git checkout command below.

git checkout [branch]

Use this command to change the branch where you're building. The standard branch to build out of is Master. We use this to switch to the develop branch or any other branch to test new features and bug fixes.

Shortcut:

be fastlane prepenv; be fastlane setup_app app_id:[appid#]; be fastlane android build; be fastlane ios build; be fastlane ios beta

 

 

My Tours

iOS:

This is the directory for My Tours iOS builds:

cd mytours-ios

For new apps you will need to provision them first. Before using the below command to provision app you need to make sure the Apple developer and connect login email and team IDs are entered in to the app details on the My Tours' backend.

 

CleanShot_2020-12-07_at_13.15.16_2x.png

If you don't know the Team IDs then you can run the below command and it will list the IDs for all the accounts we have been invited to.

FASTLANE_PASSWORD="dial&Discover11sixty" be fastlane list_teams login:apps@stqry.com

Okay, time to provision the app:

be fastlane provision_app app_id:[appid#]

If an app has already been provisioned then it only needs to be set up in Xcode:

be fastlane setup_app app_id:[appid#]

Once the app has finished provisioning or being set-up then open Xcode.

In Xcode make sure the Display Name is the same as the App Name.

If this isn't the first version then check version (1) and build (2). You may need to raise the build or version number by manually entering a higher number.

CleanShot_2020-12-07_at_09.54.27_2x.png

Go to Signing & Capabilities (1) and select the correct/valid certificate (2) and profile (3)

CleanShot_2020-12-07_at_16.12.47_2x.png

Then archive and upload the build to the app store connect.

CleanShot_2020-12-07_at_16.14.57_2x.png

It'll take about 20 minutes or so to finish processing once you've uploaded the build.

Android:

Android is a bit more straight-forward to build than iOS. Go to the correct directory:

cd mytours-android

Then run the following command:

be rake build:production:build\[[appid#]\]

Once it's done running the command an APK will be placed in the output folder.

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select atleast one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article