How to build .ipa for React Native?

后端 未结 4 2180
我在风中等你
我在风中等你 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条回答
  •  Happy的楠姐
    2020-12-07 14:24

    i cannot comment on the above answer, it is correct but you need to start with the following command in order for it to work:

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

    the difference is 'ios' instead of 'iOS'

    if not it will give the following error:

    ProjectPath/node_modules/promise/lib/done.js:10
      throw err;
      ^
    

提交回复
热议问题