Commit 6b700b4
feat: allow passing cli args when running in the iOS Simulator (#5518)
* Allow passing command line arguments when running an app in the iOS Simulator
The `IOS_SIMULATOR_RUN_ARGS` environment variable allows specific command line arguments
to be passed to the simulator when running an app.
This is _extremely_ useful when working (for example) with Firebase and having to debug
events or other internals:
https://firebase.google.com/docs/analytics/debugview
The command line arguments `-FIRDebugEnabled` and `-FIRDebugDisabled` control the behavior
of Firebase in combination with its realtime event debugging console.
With this patch, enabling debugging is as easy as calling:
```bash
IOS_SIMULATOR_RUN_ARGS=-FIRDebugEnabled ns run ios
```
* Add documentation for `IOS_SIMULATOR_RUN_ARGS` variable
* Update docs/man_pages/project/testing/run-ios.md
Co-authored-by: Igor Randjelovic <[email protected]>1 parent ce0c714 commit 6b700b4
File tree
2 files changed
+8
-1
lines changed- docs/man_pages/project/testing
- lib/common/mobile/ios/simulator
2 files changed
+8
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
48 | 52 | | |
49 | 53 | | |
50 | 54 | | |
| |||
Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
| 74 | + | |
74 | 75 | | |
75 | 76 | | |
76 | 77 | | |
77 | | - | |
| 78 | + | |
78 | 79 | | |
| 80 | + | |
| 81 | + | |
79 | 82 | | |
80 | 83 | | |
81 | 84 | | |
| |||
0 commit comments