You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When running on an Apple Silicon Mac and building only for the simulator used in the current run, prefer compiling only the active `arm64` simulator architecture:
76
+
77
+
```bash
78
+
xcodebuild ... \
79
+
ONLY_ACTIVE_ARCH=YES \
80
+
ARCHS=arm64
81
+
```
82
+
83
+
Use this optimization only for local self-test / e2e simulator builds tied to the current machine. Do not use it when you need a universal simulator app for other machines or when running on Intel Macs.
On Apple Silicon Macs, when the build is only for the dedicated simulator created for the current self-test run, prefer compiling only the active `arm64` simulator architecture:
167
+
168
+
```bash
169
+
ONLY_ACTIVE_ARCH=YES \
170
+
ARCHS=arm64
171
+
```
172
+
173
+
Do not use that optimization when you need a universal simulator bundle for other machines or when the host Mac is Intel.
For non-auth iOS self-tests, bootstrap auth through the standard iOS runner mode after the app has been installed and launched once:
312
+
313
+
```bash
314
+
cd apps/mobile
315
+
pnpm run e2e:ios:bootstrap
316
+
```
317
+
318
+
This bootstrap path is the default for `prod` and `local` self-tests. Only skip it when the feature under test is login, registration, sign-out, session restoration, or another auth-specific flow that must be validated visually end-to-end.
- The iOS runner resets the simulator, disables password autofill prompts, installs the provided app bundle, then executes Maestro.
24
25
26
+
## Prod iOS auth bootstrap
27
+
28
+
When non-auth iOS self-tests need a signed-in simulator quickly, bootstrap auth through the standard iOS runner mode:
29
+
30
+
```bash
31
+
pnpm run e2e:ios:bootstrap
32
+
```
33
+
34
+
This mode uses the auth bootstrap helper on iOS when `EXPO_PUBLIC_E2E_ENV_PROFILE=prod` or `EXPO_PUBLIC_E2E_ENV_PROFILE=local`, and falls back to the normal iOS registration flow for other environments.
35
+
36
+
Optional environment variables:
37
+
38
+
-`E2E_EMAIL`
39
+
-`E2E_PASSWORD`
40
+
-`MAESTRO_IOS_DEVICE_ID`
41
+
-`E2E_API_URL`
42
+
-`E2E_CALLBACK_URL`
43
+
-`E2E_BUNDLE_ID`
44
+
45
+
The bootstrap script signs in against prod using the mobile fallback token header, writes the auth cookie into the simulator's `ExpoSQLiteStorage` fallback store, and relaunches the app.
0 commit comments