Build iOS Application from a React Native and push to App Store
This is a working draft.
Make sure that you have the last changes from the remote branch.
From the project root run the following in the terminal:
yarn
npx react-native bundle --entry-file='index.ts' --bundle-output='./ios/Abqarino/main.jsbundle' --dev=false --platform='ios' --assets-dest='./ios'
cd ios && npx pod install && cd ..
Using Xcode open the
*.xcworkspace
generated fileMake sure to sign in with the apple developer account, and that you have the
Push Notifications
Capability enabled, if not add it using the button+ Capability
In Xcode select your project from the
TARGETS
left side menu then navigate toBuild Phases
tab in the right section.Make sure that
Copy Bundle Resources
' attributes have all the necessary resources for the bundle to work, if not add them using the+
button.Before:
After:
Navigate to the
Images
folder and set theAppIcons
by clicking on each icon frame and select the respective size,Before:
After:
Now you can start a
Build
process based on the release settings you have set, or you could start aArchive
process to push toApp Store
for TestFlight or an Apple Review.To start
Archive
process:Select
Any iOS Device
from the Devices menuFrom the
Product
menu click onArchive
When the build finishes, select the last archive and click on
Distribute App
and follow the flow.
To start a Release
build:
Navigate to Edit Scheme
Make sure that the
Run
action has a build configuration withRelease
valueSelect an iOS simulator, then hit the Play button
Subscribe to my newsletter
Read articles from Omar Rashad directly inside your inbox. Subscribe to the newsletter, and don't miss out.
Written by
Omar Rashad
Omar Rashad
I'm a Full-Stack Developer and I currently work at SwiftX as a Software Engineer. I develop and maintain web applications using Ruby on Rails framework. I work closely with the team to understand project requirements and develop technical solutions to achieve project goals. I am responsible for writing high-quality, maintainable, and scalable code that adheres to industry standards and best practices.