Packages that are already installed
New projects start from a prepared base that already includes many native packages. Examples:- video and audio
- SQLite
- secure storage
- Skia (drawing and graphics)
- Reanimated (animations)
- bottom sheets
- MMKV (fast key-value storage)
What triggers a native build
Your app is built again when its native part changes:- Adding a native package that isn’t already installed.
- Changing
app.jsonin almost any way: the bundle ID, Android package name, version, icon, orientation, plugins, permissions or URL scheme.
iOS and Android together
When the agent builds, it builds for both iOS and Android, whichever platform you’re looking at. If nothing native has changed since the last build, it reuses that build instead of making a new one. When a new build is ready while your simulator is running, you see “The agent changed native code. Update to install the new build.” Press Update. See Using the cloud simulators.How long a build takes
The simulator card shows how long the build has been running. While the agent builds, its progress in the chat includes an estimate of the time left, for example “Building the app - less than a minute left”. The estimate is based on recent builds. If a build runs past it, the progress reads “Building the app - taking longer than usual”. Android builds may wait for a free build worker first: “Waiting for an available Android build worker. Your build will start automatically.”When a build fails
If a build fails, the simulator card shows “Couldn’t build your app”.1
Let the agent try first
The agent looks at the build error itself and tries to fix it. You may see “The app build hit a problem. I’m fixing it and retrying automatically.” If the same failure happens 3 times in a row, the agent stops and tells you what’s wrong instead of retrying forever. If you stopped the agent, it doesn’t start a fix on its own.
2
Build again
Press Build again on the simulator card to start a new build.
3
Tell the agent what you saw
If it still fails, describe the problem in the chat. Mention the package or setting you changed last.
Builds and credits
Native builds don’t draw down credits. The agent’s work in the chat does, including the turns where it fixes a failed build automatically. See How credits work.Preview builds stay in the cloud
Preview builds install only on Newly’s cloud simulators. You can’t download them or install them on a phone. To try your iOS app on an iPhone, use TestFlight. See Testing on a real phone.Related
Using the cloud simulators
Card states, updates and controls.
App name, icon, bundle ID and version
Settings that change your native build.
Testing on a real phone
Get your app onto an iPhone.
Messages explained
What build and preview messages mean.