Skip to content

Release Process

Shashank edited this page Apr 10, 2018 · 6 revisions

Note:-

  • Check whether there is a post install install script , if so verify its credibility but as of now you can remove it.This is very important as the script tries to download frameworks from an old URL after your package has finished installing leading to an obsolete package.

Steps :-

  • Setup React-Native on your system.Two things to keep in mind while doing so , don't stop the terminal which creating a build and secondly make sure you don't have a script in .profile or .bash_profile as I spent hours trying to figure out why my react-native run-iOS command was failing.Another common issue is getting a .h file not found error , if you get this error it is because you have cloned the repo for the first time and have not run npm install yet so to fix this go to the folder containing package.json and run npm install it'll fix this issue for you.
  • Secondly once you setup react-native you might get a dyld:library not found error , if you have not added a framework it makes sense but if you have done so then the cause if different.To fix this first check on which version your framework has been compiled with by pressing cmd+o on the framework and opening the header file. Then check if your current version of Xcode supports this , most of the time it is because of this issue as in native-iOS you get a clear message of Swift Incompatibility but here you get a library not found.
  • Now once you have confirmed everything is alright delete the contents of the derived folder and build i.e if you have changed the framework by any chance as the files of the previous framework remains in derived data and this intern causes Swift Incompatibility issue (in this case yes but not in the former - I know this is wierd)
  • Run the example app and if all's well create an account of npm.
  • Get yourself access to React-Native-Razorpay repo then login using npm login in your terminal
  • Finally run npm publish.
Clone this wiki locally