How to reduce app center build time for ios build on React-Native
I'm integrating our app with the app center to distribute to internal, and external users and the store.
I believe that every developer who uses App Center to make iOS builds has had or will have build time problems with appCenter.
In the free plan, you have a limit of 240 hours per month and a maximum of 30 minutes per build. This means that if your build exceeds 30 minutes, it will surely give an error and stop the build process.
This is because the build is being compiled with Flipper, which is a debugging platform, and it takes longer for the build to finish.
you can optimize the build in this way to save a few minutes, open the ios folder,
* 1 Open the PodFile file,
* 2 add IS_CI = ENV['APPCENTER_BUILD_ID'] ,
* 3 Add this piece of code to be able to build without Flipper,
* 4 Save the file,
* commit the changes and upload them to your project's Github, if it is integrated with appcenter the build will start automatically.
before
after coding optimization
I hope this helps!
Thanks