3

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

Aishwarya
  • 987
  • 3
  • 10
  • 26
deejay
  • 103
  • 1
  • 1
  • 6
  • Possible duplicate of [How to build .IPA for React Native?](https://stackoverflow.com/questions/35476349/how-to-build-ipa-for-react-native) – Dean Meehan Aug 02 '18 at 09:35

3 Answers3

2

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
Chris Schaller
  • 13,704
  • 3
  • 43
  • 81
Santosh Sharma
  • 2,114
  • 1
  • 17
  • 28
0

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.
  • 1
    Doesn't work. `An error was encountered processing the command (domain=NSPOSIXErrorDomain, code=2):` – Green Aug 17 '18 at 10:00
0

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.

Balram Singh
  • 1,576
  • 19
  • 30