How to build .ipa for React Native?

后端 未结 4 2183
我在风中等你
我在风中等你 2020-12-07 13:38

I come to React Native development without previous experience in iOS development. I want to build release. .ipa file - ideally from the command line but the official docume

4条回答
  •  旧巷少年郎
    2020-12-07 14:29

    iOS

    1. Open iOS project with Xcode using the following simple command from your root folder.

      xed ./ios
      
    2. Now paste the following command in terminal

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

    3. Edit the scheme from Xcode like this:

      Product -> Scheme -> Edit Scheme

      Edit scheme to release

    Now you have a stand-alone Xcode project and ready to build/release like native Xcode project.

    Ans From: https://medium.com/better-programming/create-ipa-and-apk-from-react-native-72fe53c6a8db

提交回复
热议问题