Intro:
This showcases a react native demo for android and ios.
Prerequisites:
- Install bun from bun.sh
bun install
bunx expo prebuild
bun run android
bun run ios
bunx expo eject
cd android && ./gradlew assembleRelease
The native iOS build is very slow (Android might be as well). This guide describes how to speed it up using ccache. In practice, build time reduction from several minutes to a few seconds is observed. The procedure boils down to the following:
Install ccache:
brew install ccache
Enable ccache support in the build - either edit ios/Podfile.properties.json or add a local version, ios/Podfile.properties.local.json:
{
"apple.ccacheEnabled": "true"
}
Then do a clean build and observe faster subsequent builds.