Reading time: 4 minutes
Today I’m going to show you how to publish an app on the App Store (iOS).
The first thing we need to do is create an iOS developer account ($99/year) https://developer.apple.com/account
Once created and validated, we proceed to create the app. Go to Program resources and choose App Store Connect > Apps.
Now go to the title and click on + and select new APP.
Fill in the requested information:
The pack ID matches the “bundleIdentifier”: ID indicated in the app.json file, which is stored after generating the first build from React Native (How to create a development build using Expo EAS with React Native).
And SKU, we invent a code (it’s a unique identifier that is not visible on the App Store).
Once created, we have to add all the required resources:
We will also take a screenshot in different resolutions (we can use the iOS emulator to take them). Remember to add all the Mandatory ones in this case, they are iPhone 6.5, 5.5, and iPad 6 and 2nd generation.
We can also add login information, which will allow adding an account that the reviewer can use.
Once you have filled in the Apple Store information, you need to add the different sections:
Once we have filled in everything, we can generate a build.
We need to install EAS:
npm install -g eas-cli && eas login
Once installed, we need to configure the necessary data for the app in EAS:
Open our eas.json file and add the following information:
"submit": { "production": { "ios": { "appleId": "ourIOSAccountEmail", "ascAppId": "accountPassword", "appleTeamId": "appleTeamId" } } },
Add the following information:
- Apple id: Apple developer account email.
- ascAppId: Apple developer account password.
- appleTeamId: Apple team ID (associated with our account in App Store Connect).
To publish, we first need to generate a production build:
eas build -p ios --profile production
It will ask us to log in with our account. Enter the data and allow access to the account.
Then it will generate a Distribution profile and build the app (it takes a while).
Once generated, we need to upload the build to the App Store with the following command:
eas submit -p ios
Now select the build you want to submit, and finally, the following message will appear:
Now you can select the app within App Store Connect and submit it for review or use it in TestFlight.
To complete the publication, we have to select the added build in the Builds section
And now we have to add Export Compliance Information.
To provide this information, click on the added build:
And the build configuration screen will open.
Now we choose Testing Information:
And click on Provide Export Compliance Information
And the form will appear:
We can also provide it directly in info.plist
In this case, we select that none of the above mentioned algorithms. Unless our app includes any implemented algorithm.