Lessons · Vi Studio · 28 of 36
Build for Android and iOS
Store builds and test builds in Expo’s cloud.
When the app is ready for a real phone or a store, use Run → Build for Android / iOS…:
- Choose Android, iOS or Both.
- Choose Publish to the store (an .aab for Google Play, an .ipa for the App Store) or Test on my phone (an .apk you install straight on an Android phone, or an iOS build for your registered iPhones).
- A terminal opens and the build runs in Expo's cloud. Sign in with a free Expo account when asked. Store builds for iOS also need an Apple Developer account. When it is done, the download link shows in the terminal and on expo.dev.
Studio reads the app's details from config: (in src/config.vi):
name:andicon:and thesplash:block, as usual.id:the store id, likecom.yourname.tasks. Made from the app name when missing, but set it before your first store build and never change it after publishing.version:like"1.2.0". Build numbers are counted up automatically.
If something in the config is wrong (an id without dots, a version like "one"), Studio says what to fix first.
Every example here runs in Vi Studio: open it in your browser (phones too) and press Start learning on the welcome page. Each code block there has a Try it button that runs it in the phone preview.
More in Vi Studio
- Inspect, move and lay outFind a container’s code, drag it somewhere else, set its layout.
- Source Control (Git)Commits, diffs and publishing to GitHub.
- The AssistantA local AI helper that proposes edits you can apply.
About Vi. Vi is a free, open-source programming language for building real mobile apps. You describe each screen in plain words, and Vi compiles it to React Native (Expo) for Android, iOS and the web. Its editor, Vi Studio, runs on Windows, in any browser and on your phone, with the app running live as you type. Read more about Vi.