deejay
deejay

Reputation: 103

How to generate .ipa file for react-native?

I am currently using React-Native version 0.40.0.

Can somebody give me a link on the process and steps on how to generate an .ipa file for ios?? I'm currently new to react-native.

Btw I'm using version 8 of Xcode

Upvotes: 3

Views: 13775

Answers (3)

Balram Singh
Balram Singh

Reputation: 1754

Open projectname.xcworkspace from ios folder in Xcode.

Build app by going to Product -> Build

Archive app by going to Product -> `Archive' enter image description here

Once both Build and Archive are successful, it will trigger an option to distribute app.

enter image description here

Select Development option in second step and select default options in all next steps, it will generate ipa file. Airdrop or transfer this ipa file to any ios device and test app. enter image description here enter image description here Make sure you are logged in to user accounts using apple id.

Upvotes: 2

Santosh Sharma
Santosh Sharma

Reputation: 2248

Try Following

react-native bundle --dev false --entry-file index.ios.js --bundle-output ios/main.jsbundle --platform ios

If you do not have a platform variant of index.js, then change the command to target your single index.js:

react-native bundle --dev false --entry-file index.js --bundle-output ios/main.jsbundle --platform ios

Upvotes: 3

user7784591
user7784591

Reputation:

Get .app file : Run this command -> react-native run-ios --configuration=release

Convert .app to .ipa :

  1. Create folder Payload.
  2. paste .app file into Payload folder.
  3. compress the Payload folder.
  4. change the name you want and put extension as .ipa.

Upvotes: -1

Related Questions