Web and mobile
Prepare and verify iOS
Build the Expo client with Xcode, distinguish Simulator and physical-device checks, configure signing and verify the API and notifications.
Read the existing evidence correctly
The optional mobile client is experimental. The release workflow exports an iOS bundle and the mobile README records automated session checks, but it does not record a verified iOS Simulator or physical-device run. Bundle export validates packaging; native installation and user interaction require separate evidence. The steps below describe that verification on your own Mac.
Use g new AcmeDesk --mobile to include the client in a generated project. Start its backend using Quick start before checking authenticated screens.
Prepare the Mac and build configuration
Local iOS compilation requires a Mac with supported Xcode and an installed Simulator runtime. Check the selected toolchain and available simulators:
xcodebuild -version
xcrun simctl list devices available
cd clients/mobile
npm ci
export MOBILE_APP_NAME="AcmeDesk"
export MOBILE_BUNDLE_ID="com.example.acmedesk"
export EXPO_PUBLIC_API_URL="https://api.example.com"
Replace the example name, identifier and API origin. app.config.ts validates the identifier as lowercase, dot-separated segments, enables tablet support and uses automatic interface style. The main icon is assets/app-icon-dark-1024.png, while the splash image is assets/brand.png.
The repository documents Node 22.18 or later, including Node 24/26, for its TypeScript-based tests. Install dependencies from the lockfile rather than changing package versions to resolve a local toolchain error.
Run an iOS Simulator build
The package's ios script runs expo run:ios. Use:
npm run ios -- --device
Choose an installed simulator in Expo's target selection. Expo generates the native project when the corresponding native directory is absent, compiles it, installs the app and starts Metro. These steps depend on the local Xcode environment. After a successful native build, npm start serves subsequent JavaScript changes; rebuild after native plugin or configuration changes.
If the target is unavailable, inspect the installed runtime and selected Xcode tools before debugging application code. If compilation fails, keep the native error output separate from a later API connectivity failure.
Install on a physical iPhone
Connect and trust the device, enable Developer Mode as required, and select it with the same device-selection command. Configure an Apple account, development team and signing assets in Xcode. The bundle identifier must agree with the target's signing configuration.
Use Xcode's Signing & Capabilities tools to resolve provisioning problems. Development installation and App Store distribution have different signing and distribution requirements; a debug run is not a submission artifact. Keep certificates, provisioning material and deployment credentials outside the source repository. Apple's linked guides describe the device and signing steps.
Connect the backend and test session boundaries
EXPO_PUBLIC_API_URL must contain only the API origin; do not append /api/v1. The client adds API paths itself. Its validator rejects URL credentials, query strings and fragments, and restricts HTTP to explicit development hosts. Use a reachable, trusted HTTPS address for a physical phone: its loopback address refers to the phone itself.
Enter the workspace's tenant identifier and sign in with an authorized user, including TOTP when enabled. Confirm that switching workspaces does not retain another tenant's data. Test attachment upload and preview as well as login, because signed storage URLs must also be reachable. Native session persistence uses Expo SecureStore; sign-out and cache cleanup should be part of the observed journey. See Files for transfer states.
Configure optional iOS notifications
For Expo push delivery, set the server's MobilePush:Provider to Expo and supply EXPO_PUBLIC_PUSH_PROJECT_ID. iOS additionally needs the push entitlement, signing identity and APNs credentials described by the mobile README. Rebuild the native client after plugin or credential changes, then opt in from Account.
Verify delivery while foregrounded, backgrounded and closed. The in-app inbox is authoritative, and foreground SignalR synchronization works independently. A received in-app notification does not establish successful APNs delivery.
Record acceptance by layer
Run npm test, npm run typecheck and npm run lint. To reproduce the bundle-export stage, run:
npx expo export --platform ios --output-dir dist-ios
Record that result separately from a Simulator launch and an iPhone run. For each native target, record the source revision, Xcode/runtime version, device, API environment and results for login, workspace switching, files, chat, reconnecting and logout. Check Arabic direction and English text independently. This produces a reviewable platform record without treating a successful export as proof of native behavior.