Sections
Documentation › Develop
Build the iPhone app on a Mac
The ios/ project is prepared and checked on Linux (test/ios-project.test.js) but has never been compiled here: the first build happens on a Mac.
Prerequisites
| Item | Details |
|---|---|
| Mac | Recent macOS with Xcode 16 or later (Capacitor 7) |
| Node | same version as the server, npm install --include=dev |
| Apple account | Apple Developer Program (paid): the app declares push notifications, which free teams cannot use |
| iPhone | connected over USB or on the same Wi-Fi, Developer Mode enabled (Settings > Privacy & Security) |
No certificate, profile, team ID or APNs key goes into the repository.
Steps
git clone <dépôt> noyau && cd noyau
npm install --include=dev
node scripts/build-mobile.mjs ios --prepare-only # web build, version, icon, cap sync
open ios/App/App.xcodeproj
In Xcode: App target > Signing & Capabilities > choose the team, keep "Automatically manage signing". Choose the iPhone, then Run.
From the command line (signed archive + "development" IPA for the team's registered iPhones):
APPLE_TEAM_ID=ABCDE12345 node scripts/build-mobile.mjs ios --share
ios/ExportOptions.example.plistis used by default. For TestFlight, copy this file outside the repository withmethod=app-store-connectand pass it inNOYAU_IOS_EXPORT_OPTIONS.--shareputs the IPA in the Shared files and shows it in Settings > Mobile app.- Server address and private certificate authority:
.data/native-connection.json(outside Git), read at--prepare-onlytime.
App Store (--store)
NOYAU_IOS_APP_ID=1234567890 node scripts/build-mobile.mjs ios --prepare-only --store
NOYAU_IOS_APP_ID: the app's numeric id (App Store Connect > App Information > Apple ID). Without it the app cannot open its listing: no "Update" or "Rate" button (the native rating prompt still works). The build warns when it is missing.No built-in server address: first screen "Scan the QR code", address, or "Try the demo" (sample data, no server).
UIBackgroundModeslocationremoved (App Review 2.5.4): local alerts only while the app is open. A build without--storeputs it back.APK/IPA downloads hidden in the app.
Archive: Xcode > Product > Archive > Distribute App > App Store Connect (automatic team signing).
Listing, reviewer notes, privacy:
docs/store/.
To check on the iPhone
- First launch: password sign-in, then the "Face ID" offer (or "Touch ID" depending on the device).
- Returning after more than 5 minutes in the background: Face ID requested again, draft kept.
- Face ID cancelled: clear message, "Disable on this device and use password" button.
- Safari / PWA on the HTTPS domain name: passkey offered after sign-in, then one-gesture sign-in.
- Push notifications: only after APNs is configured on the server (see
docs/groceries.md).
Security details: docs/native-auth.md.
For Android (debug APK or Play Store AAB): docs/android-build.md.