stuntcam 0.0.0-stage → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +202 -0
- package/README.md +29 -2
- package/THIRD_PARTY_NOTICES.md +132 -0
- package/bin/stuntcam +0 -0
- package/package.json +38 -4
- package/share/stuntcam/manifest.txt +17 -0
- package/share/stuntcam/media/qr.png +0 -0
- package/share/stuntcam/payload.tar +0 -0
- package/share/stuntcam/profiles/cfg-m10.plist +582 -0
- package/share/stuntcam/restore-rules/27A266a.json +70 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for reasonable and customary use in describing the
|
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
+
or other liability obligations and/or rights consistent with this
|
|
169
|
+
License. However, in accepting such obligations, You may act only
|
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
+
of your accepting any such warranty or additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
|
177
|
+
|
|
178
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
179
|
+
|
|
180
|
+
To apply the Apache License to your work, attach the following
|
|
181
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
182
|
+
replaced with your own identifying information. (Don't include
|
|
183
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
184
|
+
comment syntax for the file format. We also recommend that a
|
|
185
|
+
file or class name and description of purpose be included on the
|
|
186
|
+
same "printed page" as the copyright notice for easier
|
|
187
|
+
identification within third-party archives.
|
|
188
|
+
|
|
189
|
+
Copyright 2026 Avinav Bhandari
|
|
190
|
+
|
|
191
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
|
+
you may not use this file except in compliance with the License.
|
|
193
|
+
You may obtain a copy of the License at
|
|
194
|
+
|
|
195
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
196
|
+
|
|
197
|
+
Unless required by applicable law or agreed to in writing, software
|
|
198
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
199
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
200
|
+
See the License for the specific language governing permissions and
|
|
201
|
+
limitations under the License.
|
|
202
|
+
|
package/README.md
CHANGED
|
@@ -1,3 +1,30 @@
|
|
|
1
|
-
|
|
1
|
+
<!-- SPDX-License-Identifier: Apache-2.0 -->
|
|
2
|
+
# stuntcam
|
|
2
3
|
|
|
3
|
-
|
|
4
|
+
A camera for the iOS Simulator. Your app's real camera code runs unmodified: no code, dependency or project changes. The
|
|
5
|
+
simulator shows a synthetic scene (or your image or video) through Apple's own AVFoundation, so previews, photos, video,
|
|
6
|
+
QR and barcode scanning and orientation behave the way they do on a phone.
|
|
7
|
+
|
|
8
|
+
Needs an Apple-silicon Mac with Xcode 27 and an iOS Simulator runtime (verified: 26.3 and 27.0; 17.5 smoke-tested).
|
|
9
|
+
Simulator only: nothing is linked into your app, and device builds never load it.
|
|
10
|
+
|
|
11
|
+
```sh
|
|
12
|
+
npx stuntcam up # no install; or a global install. A devDependency makes `npm ci` fail on Linux CI (the package is darwin/arm64 only)
|
|
13
|
+
npx stuntcam up # self-test, then arm a simulator (boots it with the camera if it's shut down)
|
|
14
|
+
# run your app as usual: xcodebuild, expo run:ios, react-native run-ios, flutter run, Xcode ⌘R
|
|
15
|
+
npx stuntcam status # what each simulator is doing
|
|
16
|
+
npx stuntcam doctor # why there's no camera, if there isn't
|
|
17
|
+
npx stuntcam down # stop: new launches get no camera, no reboot
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
UI tests: `npx stuntcam exec -- xcodebuild test -scheme <UI test scheme> -destination id=<udid>`.
|
|
21
|
+
|
|
22
|
+
The package is the `stuntcam` command (a native macOS arm64 binary, no install scripts) plus the prebuilt simulator
|
|
23
|
+
libraries and the self-test app (inside `share/stuntcam/payload.tar`, byte for byte as built and signed) and the restore
|
|
24
|
+
rules, under `share/stuntcam/`. At each use stuntcam checks every file against `share/stuntcam/manifest.txt`, whose
|
|
25
|
+
sha256 is built into the `stuntcam` binary (so the files are exactly the ones packaged with it), and unpacks what
|
|
26
|
+
simulators read into `~/Library/Application Support/stuntcam`. It uses its own files even when run inside a stuntcam
|
|
27
|
+
source checkout, unless `STUNTCAM_USE_CHECKOUT=1` or `--build` says otherwise. `stuntcam version` names the release and the commit it was built from.
|
|
28
|
+
|
|
29
|
+
Licence: Apache-2.0 (`LICENSE`); third-party notices: `THIRD_PARTY_NOTICES.md`. Docs, support policy and troubleshooting:
|
|
30
|
+
https://github.com/avinav-b/stuntcam
|
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
<!-- SPDX-License-Identifier: Apache-2.0 -->
|
|
2
|
+
# Third-party notices
|
|
3
|
+
|
|
4
|
+
stuntcam is Apache-2.0 ([LICENSE](LICENSE)). This file lists every file or fragment in the tree that isn't ours, with
|
|
5
|
+
where it came from and under which licence (design §1). Our own source files
|
|
6
|
+
carry an `SPDX-License-Identifier: Apache-2.0` line, checked by `tools/spdx-check.sh`; the files below don't, and that
|
|
7
|
+
script skips the third-party source files among them.
|
|
8
|
+
|
|
9
|
+
Where the repo doesn't record an upstream commit SHA or version, this file says so ("not recorded — TODO") rather than
|
|
10
|
+
guess one. The scope is the shipped tree: `build.sh`, `engine/`, `cli/`, `canary/`, `scripts/`, `tools/`, `fixtures/`,
|
|
11
|
+
`restore-rules/`.
|
|
12
|
+
|
|
13
|
+
The npm package and Homebrew tarball (`scripts/package.sh`) ship our own files (the four dylibs built from `engine/`, the canary
|
|
14
|
+
app built from `canary/`, `engine/profiles/cfg-m10.plist`, `fixtures/media/qr.png`, `restore-rules/*.json`, this file and
|
|
15
|
+
`LICENSE`) and the CLI binary, which statically links the Go runtime and standard library (notice below; the CLI has no
|
|
16
|
+
other dependencies). None of the other third-party files below are in the packages.
|
|
17
|
+
|
|
18
|
+
## Code from other camera tools: none
|
|
19
|
+
|
|
20
|
+
No file or fragment in the shipped tree is copied from serve-sim, baguette, idb, SimulatorCamera, SimCam or any other
|
|
21
|
+
simulator camera tool. Their issue trackers and designs informed the design (design §1), but the
|
|
22
|
+
engine, loader, stub, CLI, canary, scripts and tools are written from scratch. Names of other tools in the code (for
|
|
23
|
+
example `serve-sim` paths in `cli/internal/arm/arm_test.go`, `idb` in `engine/loader/loader.c`) are test data or
|
|
24
|
+
detection of those tools, not their code.
|
|
25
|
+
|
|
26
|
+
Software Mansion SimCam, sim-cli and the other unlicensed or closed projects the design research marked "Do not copy" have
|
|
27
|
+
contributed nothing.
|
|
28
|
+
|
|
29
|
+
## Apple: AVCam sample (`fixtures/avcam/`)
|
|
30
|
+
|
|
31
|
+
| | |
|
|
32
|
+
|---|---|
|
|
33
|
+
| Upstream | "AVCam: Building a camera app", Apple sample code |
|
|
34
|
+
| URL | https://developer.apple.com/documentation/avfoundation/avcam-building-a-camera-app; zip `https://docs-assets.developer.apple.com/published/cd906d1738b2/AVCamBuildingACameraApp.zip` |
|
|
35
|
+
| Version | zip sha256 `5a1981f90bb30827121324d4b33198d58de9b9d68e3508b64f0aabc18bbc0e53` (19,771,840 bytes); the zip's own git history ends at `0abcc86e07b4ad31fd22069bc5bc8f14cf5456a6` (2026-10-23, "Updated for latest OS release.") |
|
|
36
|
+
| Licence | The Apple Sample Code License, the `LICENSE.txt` in the zip ("Copyright 2026 Apple Inc. All Rights Reserved."). Its notice must accompany the sample only when it is redistributed in its entirety and unmodified; `avcam.patch` carries fragments only. The licence grants no patent rights and doesn't allow Apple's name to endorse derived products |
|
|
37
|
+
| In this repo | `fixtures/avcam/avcam.patch` only: its context and removed lines are Apple's code under that licence; its added lines are ours (Apache-2.0). The sample itself is not in the repo: `fixtures/avcam/build.sh` downloads it (or takes your copy) and patches it under the git-ignored `build/` |
|
|
38
|
+
| Ours | `fixtures/avcam/build.sh`, `test.sh`, `README.md`, `.gitignore` and `uitest/` (a separate UI-test project, not part of the sample) |
|
|
39
|
+
|
|
40
|
+
## Expo app template (`fixtures/expo/`)
|
|
41
|
+
|
|
42
|
+
The fixture started as an Expo app from a template, and its `ios/` folder is `npx expo prebuild` output (README: "To
|
|
43
|
+
regenerate it from `app.json`, run `npx expo prebuild -p ios --clean`").
|
|
44
|
+
|
|
45
|
+
| | |
|
|
46
|
+
|---|---|
|
|
47
|
+
| Upstream | Expo (650 Industries, Inc.): the app template and the prebuild iOS template |
|
|
48
|
+
| URL | https://github.com/expo/expo |
|
|
49
|
+
| Version | `expo` ~58.0.23 (`package.json`; 58.0.23 in `package-lock.json`). Which app template was used, and the template packages' versions or SHAs, are not recorded — TODO |
|
|
50
|
+
| Licence | MIT, "Copyright (c) 2015-present 650 Industries, Inc. (aka Expo)": `fixtures/expo/LICENSE`, which came with the template |
|
|
51
|
+
|
|
52
|
+
Template files, kept as generated or with small edits (app name, bundle id, usage-description strings, the camera plugin
|
|
53
|
+
in `app.json`, the dependencies in `package.json`, one comment line in `.gitignore`):
|
|
54
|
+
|
|
55
|
+
- `fixtures/expo/LICENSE`, `AGENTS.md`, `index.ts`, `tsconfig.json`, `app.json`, `package.json`, `.gitignore`
|
|
56
|
+
- `fixtures/expo/assets/*.png` (template icons and splash image)
|
|
57
|
+
- `fixtures/expo/ios/` (all of it, `npx expo prebuild` output): among the source files `m1bcam/AppDelegate.swift`,
|
|
58
|
+
`m1bcam/SceneDelegate.swift`, `m1bcam/m1bcam-Bridging-Header.h`; also `Podfile`, `Podfile.properties.json`,
|
|
59
|
+
`.xcode.env`, `.gitignore`, the Xcode project and workspace, `Info.plist`, `Expo.plist`, `PrivacyInfo.xcprivacy`,
|
|
60
|
+
`SplashScreen.storyboard`, `m1bcam.entitlements` and the asset catalog
|
|
61
|
+
|
|
62
|
+
Generated by tools, not authored: `package-lock.json`, `ios/Podfile.lock`.
|
|
63
|
+
|
|
64
|
+
Ours (Apache-2.0): `fixtures/expo/App.tsx` (SPDX header) and `fixtures/expo/README.md`.
|
|
65
|
+
|
|
66
|
+
## Flutter app template (`fixtures/flutter/`)
|
|
67
|
+
|
|
68
|
+
| | |
|
|
69
|
+
|---|---|
|
|
70
|
+
| Upstream | `flutter create` app template, Flutter SDK |
|
|
71
|
+
| URL | https://github.com/flutter/flutter |
|
|
72
|
+
| Version | framework revision `c197ca5199e9ee5661e865596c9c07294dfab51c`, channel stable (`fixtures/flutter/.metadata`, which `flutter create` writes) |
|
|
73
|
+
| Licence | Flutter's licence, BSD-3-Clause ("Copyright 2014 The Flutter Authors", the `LICENSE` at the root of flutter/flutter). Its text is in `fixtures/flutter/LICENSE` |
|
|
74
|
+
|
|
75
|
+
Template files, kept as generated or with small edits (the app name, the `camera`/`mobile_scanner`/`path_provider`
|
|
76
|
+
dependencies in `pubspec.yaml`, usage-description strings in `Info.plist`):
|
|
77
|
+
|
|
78
|
+
- `fixtures/flutter/.metadata`, `.gitignore`, `analysis_options.yaml`, `pubspec.yaml`
|
|
79
|
+
- `fixtures/flutter/ios/` (all of it): among the source files `Runner/AppDelegate.swift`, `Runner/SceneDelegate.swift`,
|
|
80
|
+
`Runner/Runner-Bridging-Header.h`, `RunnerTests/RunnerTests.swift`; also the Xcode project and workspace, `Flutter/*`
|
|
81
|
+
(`AppFrameworkInfo.plist`, `Debug.xcconfig`, `Release.xcconfig`), `Runner/Info.plist`, `Runner/Base.lproj/*.storyboard`,
|
|
82
|
+
`ios/.gitignore` and `Runner/Assets.xcassets/` (app icons, launch images and their `README.md`)
|
|
83
|
+
|
|
84
|
+
Generated by tools, not authored: `pubspec.lock`.
|
|
85
|
+
|
|
86
|
+
Ours (Apache-2.0): `fixtures/flutter/lib/main.dart` (SPDX header) and `fixtures/flutter/README.md`.
|
|
87
|
+
|
|
88
|
+
## Go runtime and standard library (compiled into `bin/stuntcam`)
|
|
89
|
+
|
|
90
|
+
| | |
|
|
91
|
+
|---|---|
|
|
92
|
+
| Upstream | The Go Programming Language, https://go.dev |
|
|
93
|
+
| Version | the toolchain `cli/build.sh` / `scripts/package.sh` ran with (go1.25.4 for the w4 e51 package; `go version -m bin/stuntcam` prints it) |
|
|
94
|
+
| Licence | BSD-3-Clause, the Go distribution's `LICENSE`, reproduced here because binary redistribution requires it |
|
|
95
|
+
| In this repo | nothing: linked into the CLI binary at build time |
|
|
96
|
+
|
|
97
|
+
```
|
|
98
|
+
Copyright 2009 The Go Authors.
|
|
99
|
+
|
|
100
|
+
Redistribution and use in source and binary forms, with or without
|
|
101
|
+
modification, are permitted provided that the following conditions are
|
|
102
|
+
met:
|
|
103
|
+
|
|
104
|
+
* Redistributions of source code must retain the above copyright
|
|
105
|
+
notice, this list of conditions and the following disclaimer.
|
|
106
|
+
* Redistributions in binary form must reproduce the above
|
|
107
|
+
copyright notice, this list of conditions and the following disclaimer
|
|
108
|
+
in the documentation and/or other materials provided with the
|
|
109
|
+
distribution.
|
|
110
|
+
* Neither the name of Google LLC nor the names of its
|
|
111
|
+
contributors may be used to endorse or promote products derived from
|
|
112
|
+
this software without specific prior written permission.
|
|
113
|
+
|
|
114
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
|
115
|
+
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
|
116
|
+
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
|
117
|
+
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
|
118
|
+
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
|
119
|
+
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
|
120
|
+
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
|
121
|
+
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
|
122
|
+
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
123
|
+
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
124
|
+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
125
|
+
```
|
|
126
|
+
|
|
127
|
+
## Dependencies fetched at build time
|
|
128
|
+
|
|
129
|
+
The fixtures' npm packages, CocoaPods and pub packages (react-native-vision-camera, expo-camera, Flutter `camera`,
|
|
130
|
+
`mobile_scanner` and their dependencies) are not in the repo; the lockfiles above pin them and the package managers fetch
|
|
131
|
+
them, each under its own licence. stuntcam's engine, loader, stub and CLI link only Apple's system frameworks and the Go
|
|
132
|
+
standard library (`cli/go.mod` has no `require`).
|
package/bin/stuntcam
ADDED
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,40 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "stuntcam",
|
|
3
|
-
"version": "
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "A camera for the iOS Simulator: your app's real AVFoundation camera code runs unmodified",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"ios",
|
|
7
|
+
"simulator",
|
|
8
|
+
"camera",
|
|
9
|
+
"avfoundation",
|
|
10
|
+
"xcode",
|
|
11
|
+
"testing",
|
|
12
|
+
"react-native",
|
|
13
|
+
"expo",
|
|
14
|
+
"flutter"
|
|
15
|
+
],
|
|
16
|
+
"license": "Apache-2.0",
|
|
17
|
+
"homepage": "https://github.com/avinav-b/stuntcam#readme",
|
|
18
|
+
"repository": {
|
|
19
|
+
"type": "git",
|
|
20
|
+
"url": "git+https://github.com/avinav-b/stuntcam.git"
|
|
21
|
+
},
|
|
22
|
+
"bugs": {
|
|
23
|
+
"url": "https://github.com/avinav-b/stuntcam/issues"
|
|
24
|
+
},
|
|
25
|
+
"bin": {
|
|
26
|
+
"stuntcam": "bin/stuntcam"
|
|
27
|
+
},
|
|
28
|
+
"os": [
|
|
29
|
+
"darwin"
|
|
30
|
+
],
|
|
31
|
+
"cpu": [
|
|
32
|
+
"arm64"
|
|
33
|
+
],
|
|
34
|
+
"files": [
|
|
35
|
+
"bin/stuntcam",
|
|
36
|
+
"share/stuntcam/",
|
|
37
|
+
"THIRD_PARTY_NOTICES.md"
|
|
38
|
+
],
|
|
39
|
+
"preferUnplugged": true
|
|
40
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
stuntcam 1.0.0 commit 11a19148bf48
|
|
2
|
+
engine+loader 169441b21047 stub 09908f5dbe40 hook 220744d0eeed canary 6bc80a68 profile d63604f72d3d verdicts 0 xcode 27A266a
|
|
3
|
+
e708d90cb7fbdba6e9ce87a8665137b9b5e1ab7c65e1f142fdc71230e523dfab LICENSE
|
|
4
|
+
3dd81ba84b6a4dfeb7b4b343d18ace3494bfed40dfcfc0dca9a13ac4871f8340 README.md
|
|
5
|
+
1024d498d028fb1a0b26f51d7b320c76a388b15521161e1234328f5e23c1584a THIRD_PARTY_NOTICES.md
|
|
6
|
+
9fae19767952d78f71df3f5d9b7c25fc70ff72464c6af678b56b6e535f49afab package.json
|
|
7
|
+
8ae42ce03f16bfe452936d486eb808d552bf83688ba698b43dd0acc7d5eba9b6 share/stuntcam/media/qr.png
|
|
8
|
+
bfdcc67bd059f698f7838572b01383f77a44be001e147a21f7919c5d7bc5756b share/stuntcam/payload.tar
|
|
9
|
+
75b4174d043f7d2fe459605c303f197174f11331a0eb8477dafae100ae2a9777 share/stuntcam/profiles/cfg-m10.plist
|
|
10
|
+
429d01946dd057511224a274bbdb0f67dfbdc02a7df62630a6878a64fb7f7a58 share/stuntcam/restore-rules/27A266a.json
|
|
11
|
+
d8d739e19dd1997a28b49956e8f60fe6c3522df1f9f8f3ff7b537aee2f6880de payload/builds/169441b21047/libsimcam.dylib
|
|
12
|
+
199f4613219a05661109c6e2f623b3298899e743a06ae4dcb5493922eb002116 payload/builds/169441b21047/libsimcamloader.dylib
|
|
13
|
+
c0c0d78d742df6edc1f483d3330fc2752b1a221f0d2c645876c7bd9dd7505ff4 payload/canary/m10canary.app/Info.plist
|
|
14
|
+
9c5f266d8d10206b6766d2d2624138733e866e26516563c2fd7723b7e886fc4d payload/canary/m10canary.app/_CodeSignature/CodeResources
|
|
15
|
+
dcf9c685ec3809bb82e4a3d6d3bef47354038d42dccf698fddb9b05a8509e08f payload/canary/m10canary.app/m10canary
|
|
16
|
+
d33737dc4d9c57aae5129dc70bbc93cbc138d8b97b4856b01575b5bb6ce55e40 payload/hook/220744d0eeed/libsimcamrunnerhook.dylib
|
|
17
|
+
b363f2d38bb681cd48540bac4a5c88fa53d2b4b451ab9669f89eebab3c892130 payload/stub/09908f5dbe40/libsimcamstub.dylib
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,582 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
|
3
|
+
<plist version="1.0">
|
|
4
|
+
<dict>
|
|
5
|
+
<key>back</key>
|
|
6
|
+
<dict>
|
|
7
|
+
<key>LocalizedName</key>
|
|
8
|
+
<string>Back Camera</string>
|
|
9
|
+
<key>NonLocalizedName</key>
|
|
10
|
+
<string>Back Camera</string>
|
|
11
|
+
<key>Position</key>
|
|
12
|
+
<integer>1</integer>
|
|
13
|
+
<key>UniqueID</key>
|
|
14
|
+
<string>com.apple.avfoundation.avcapturedevice.built-in_video:0</string>
|
|
15
|
+
</dict>
|
|
16
|
+
<key>common</key>
|
|
17
|
+
<dict>
|
|
18
|
+
<key>AvailableMetadataKeyGroups</key>
|
|
19
|
+
<dict>
|
|
20
|
+
<key>MetadataGroup-Barcodes</key>
|
|
21
|
+
<array>
|
|
22
|
+
<string>mdta/com.apple.quicktime.detected-machine-readable-code.QR</string>
|
|
23
|
+
<string>mdta/com.apple.quicktime.detected-machine-readable-code.EAN13</string>
|
|
24
|
+
</array>
|
|
25
|
+
</dict>
|
|
26
|
+
<key>AvailableNonObjectDetectionMetadataIdentifiers</key>
|
|
27
|
+
<array>
|
|
28
|
+
<string>mdta/com.apple.quicktime.detected-machine-readable-code.QR</string>
|
|
29
|
+
<string>mdta/com.apple.quicktime.detected-machine-readable-code.EAN13</string>
|
|
30
|
+
</array>
|
|
31
|
+
<key>DeviceType</key>
|
|
32
|
+
<integer>2</integer>
|
|
33
|
+
<key>Exposure</key>
|
|
34
|
+
<true/>
|
|
35
|
+
<key>ExposurePointOfInterest</key>
|
|
36
|
+
<true/>
|
|
37
|
+
<!-- Flash stays offered on the back cameras (design §5, §6.5): photos with flash .on/.auto complete normally but the
|
|
38
|
+
engine never fires one (resolved isFlashEnabled 0, no EXIF Flash; w4 e22), a documented limit. Taking flash away
|
|
39
|
+
made apps that set flashMode .on without checking supportedFlashModes throw at capturePhoto (review). -->
|
|
40
|
+
<key>Flash</key>
|
|
41
|
+
<true/>
|
|
42
|
+
<key>Focus</key>
|
|
43
|
+
<true/>
|
|
44
|
+
<key>FocusPointOfInterest</key>
|
|
45
|
+
<true/>
|
|
46
|
+
<key>HEIF</key>
|
|
47
|
+
<true/>
|
|
48
|
+
<key>HEVC</key>
|
|
49
|
+
<true/>
|
|
50
|
+
<key>Manufacturer</key>
|
|
51
|
+
<string>Apple Inc.</string>
|
|
52
|
+
<key>ModelID</key>
|
|
53
|
+
<string>com.apple.avfoundation.avcapturedevice.built-in_video:0</string>
|
|
54
|
+
<key>Torch</key>
|
|
55
|
+
<true/>
|
|
56
|
+
<key>VideoStabilization</key>
|
|
57
|
+
<true/>
|
|
58
|
+
<key>WhiteBalance</key>
|
|
59
|
+
<true/>
|
|
60
|
+
</dict>
|
|
61
|
+
<key>devices</key>
|
|
62
|
+
<array>
|
|
63
|
+
<dict>
|
|
64
|
+
<key>DeviceType</key>
|
|
65
|
+
<integer>2</integer>
|
|
66
|
+
<key>LocalizedName</key>
|
|
67
|
+
<string>Back Camera</string>
|
|
68
|
+
<key>NonLocalizedName</key>
|
|
69
|
+
<string>Back Camera</string>
|
|
70
|
+
<key>Position</key>
|
|
71
|
+
<integer>1</integer>
|
|
72
|
+
<key>UniqueID</key>
|
|
73
|
+
<string>com.apple.avfoundation.avcapturedevice.built-in_video:0</string>
|
|
74
|
+
</dict>
|
|
75
|
+
<dict>
|
|
76
|
+
<key>DeviceType</key>
|
|
77
|
+
<integer>2</integer>
|
|
78
|
+
<key>Flash</key>
|
|
79
|
+
<false/>
|
|
80
|
+
<key>LocalizedName</key>
|
|
81
|
+
<string>Front Camera</string>
|
|
82
|
+
<key>NonLocalizedName</key>
|
|
83
|
+
<string>Front Camera</string>
|
|
84
|
+
<key>Position</key>
|
|
85
|
+
<integer>2</integer>
|
|
86
|
+
<key>Torch</key>
|
|
87
|
+
<false/>
|
|
88
|
+
<key>UniqueID</key>
|
|
89
|
+
<string>com.apple.avfoundation.avcapturedevice.built-in_video:1</string>
|
|
90
|
+
</dict>
|
|
91
|
+
<dict>
|
|
92
|
+
<key>DeviceType</key>
|
|
93
|
+
<integer>3</integer>
|
|
94
|
+
<key>LocalizedName</key>
|
|
95
|
+
<string>Back Telephoto Camera</string>
|
|
96
|
+
<key>NonLocalizedName</key>
|
|
97
|
+
<string>Back Telephoto Camera</string>
|
|
98
|
+
<key>Position</key>
|
|
99
|
+
<integer>1</integer>
|
|
100
|
+
<key>UniqueID</key>
|
|
101
|
+
<string>com.apple.avfoundation.avcapturedevice.built-in_video:2</string>
|
|
102
|
+
</dict>
|
|
103
|
+
<dict>
|
|
104
|
+
<key>DeviceType</key>
|
|
105
|
+
<integer>7</integer>
|
|
106
|
+
<key>LocalizedName</key>
|
|
107
|
+
<string>Back Ultra Wide Camera</string>
|
|
108
|
+
<key>NonLocalizedName</key>
|
|
109
|
+
<string>Back Ultra Wide Camera</string>
|
|
110
|
+
<key>Position</key>
|
|
111
|
+
<integer>1</integer>
|
|
112
|
+
<key>UniqueID</key>
|
|
113
|
+
<string>com.apple.avfoundation.avcapturedevice.built-in_video:5</string>
|
|
114
|
+
</dict>
|
|
115
|
+
<dict>
|
|
116
|
+
<key>BravoSwitchOverVideoZoomFactors</key>
|
|
117
|
+
<array>
|
|
118
|
+
<real>2.0</real>
|
|
119
|
+
</array>
|
|
120
|
+
<key>DeviceType</key>
|
|
121
|
+
<integer>8</integer>
|
|
122
|
+
<key>LocalizedName</key>
|
|
123
|
+
<string>Back Dual Wide Camera</string>
|
|
124
|
+
<key>NonLocalizedName</key>
|
|
125
|
+
<string>Back Dual Wide Camera</string>
|
|
126
|
+
<key>Position</key>
|
|
127
|
+
<integer>1</integer>
|
|
128
|
+
<key>UniqueID</key>
|
|
129
|
+
<string>com.apple.avfoundation.avcapturedevice.built-in_video:6</string>
|
|
130
|
+
</dict>
|
|
131
|
+
<dict>
|
|
132
|
+
<key>BravoSwitchOverVideoZoomFactors</key>
|
|
133
|
+
<array>
|
|
134
|
+
<real>2.0</real>
|
|
135
|
+
<real>8.0</real>
|
|
136
|
+
</array>
|
|
137
|
+
<key>DeviceType</key>
|
|
138
|
+
<integer>9</integer>
|
|
139
|
+
<key>LocalizedName</key>
|
|
140
|
+
<string>Back Triple Camera</string>
|
|
141
|
+
<key>NonLocalizedName</key>
|
|
142
|
+
<string>Back Triple Camera</string>
|
|
143
|
+
<key>Position</key>
|
|
144
|
+
<integer>1</integer>
|
|
145
|
+
<key>UniqueID</key>
|
|
146
|
+
<string>com.apple.avfoundation.avcapturedevice.built-in_video:7</string>
|
|
147
|
+
</dict>
|
|
148
|
+
<dict>
|
|
149
|
+
<key>DeviceType</key>
|
|
150
|
+
<integer>13</integer>
|
|
151
|
+
<key>LocalizedName</key>
|
|
152
|
+
<string>Back LiDAR Depth Camera</string>
|
|
153
|
+
<key>NonLocalizedName</key>
|
|
154
|
+
<string>Back LiDAR Depth Camera</string>
|
|
155
|
+
<key>Position</key>
|
|
156
|
+
<integer>1</integer>
|
|
157
|
+
<key>UniqueID</key>
|
|
158
|
+
<string>com.apple.avfoundation.avcapturedevice.built-in_video:8</string>
|
|
159
|
+
</dict>
|
|
160
|
+
<dict>
|
|
161
|
+
<key>DeviceType</key>
|
|
162
|
+
<integer>6</integer>
|
|
163
|
+
<key>Flash</key>
|
|
164
|
+
<false/>
|
|
165
|
+
<key>LocalizedName</key>
|
|
166
|
+
<string>Front TrueDepth Camera</string>
|
|
167
|
+
<key>NonLocalizedName</key>
|
|
168
|
+
<string>Front TrueDepth Camera</string>
|
|
169
|
+
<key>Position</key>
|
|
170
|
+
<integer>2</integer>
|
|
171
|
+
<key>Torch</key>
|
|
172
|
+
<false/>
|
|
173
|
+
<key>UniqueID</key>
|
|
174
|
+
<string>com.apple.avfoundation.avcapturedevice.built-in_video:4</string>
|
|
175
|
+
</dict>
|
|
176
|
+
</array>
|
|
177
|
+
<key>formatTemplate</key>
|
|
178
|
+
<dict>
|
|
179
|
+
<key>AVCaptureSessionPresets</key>
|
|
180
|
+
<string>$presets</string>
|
|
181
|
+
<key>DefaultActiveFormat</key>
|
|
182
|
+
<string>$def</string>
|
|
183
|
+
<key>Height</key>
|
|
184
|
+
<string>$h</string>
|
|
185
|
+
<key>MediaType</key>
|
|
186
|
+
<string>vide</string>
|
|
187
|
+
<key>Name</key>
|
|
188
|
+
<string>$name</string>
|
|
189
|
+
<key>PixelFormatType</key>
|
|
190
|
+
<string>$pf</string>
|
|
191
|
+
<key>SensorHeight</key>
|
|
192
|
+
<integer>3024</integer>
|
|
193
|
+
<key>SensorWidth</key>
|
|
194
|
+
<integer>4032</integer>
|
|
195
|
+
<key>VideoFieldOfView</key>
|
|
196
|
+
<real>70.0</real>
|
|
197
|
+
<key>VideoMaxFrameRate</key>
|
|
198
|
+
<string>$fps</string>
|
|
199
|
+
<key>VideoMinFrameRate</key>
|
|
200
|
+
<integer>1</integer>
|
|
201
|
+
<key>Width</key>
|
|
202
|
+
<string>$w</string>
|
|
203
|
+
</dict>
|
|
204
|
+
<key>formats</key>
|
|
205
|
+
<array>
|
|
206
|
+
<dict>
|
|
207
|
+
<key>def</key>
|
|
208
|
+
<false/>
|
|
209
|
+
<key>extra</key>
|
|
210
|
+
<dict>
|
|
211
|
+
<key>HighResStillImageDimensions</key>
|
|
212
|
+
<array>
|
|
213
|
+
<dict>
|
|
214
|
+
<key>Height</key>
|
|
215
|
+
<integer>3024</integer>
|
|
216
|
+
<key>Width</key>
|
|
217
|
+
<integer>4032</integer>
|
|
218
|
+
</dict>
|
|
219
|
+
<dict>
|
|
220
|
+
<key>Height</key>
|
|
221
|
+
<integer>1440</integer>
|
|
222
|
+
<key>Width</key>
|
|
223
|
+
<integer>1920</integer>
|
|
224
|
+
</dict>
|
|
225
|
+
</array>
|
|
226
|
+
<key>VideoStabilizationSupported</key>
|
|
227
|
+
<true/>
|
|
228
|
+
</dict>
|
|
229
|
+
<key>fps</key>
|
|
230
|
+
<integer>30</integer>
|
|
231
|
+
<key>h</key>
|
|
232
|
+
<integer>1440</integer>
|
|
233
|
+
<key>name</key>
|
|
234
|
+
<string>1920x1440@30-420v</string>
|
|
235
|
+
<key>pf</key>
|
|
236
|
+
<integer>875704438</integer>
|
|
237
|
+
<key>presets</key>
|
|
238
|
+
<array>
|
|
239
|
+
<string>AVCaptureSessionPresetPhoto</string>
|
|
240
|
+
<string>AVCaptureSessionPresetInputPriority</string>
|
|
241
|
+
</array>
|
|
242
|
+
<key>w</key>
|
|
243
|
+
<integer>1920</integer>
|
|
244
|
+
</dict>
|
|
245
|
+
<dict>
|
|
246
|
+
<key>def</key>
|
|
247
|
+
<false/>
|
|
248
|
+
<key>extra</key>
|
|
249
|
+
<dict>
|
|
250
|
+
<key>HighResStillImageDimensions</key>
|
|
251
|
+
<array>
|
|
252
|
+
<dict>
|
|
253
|
+
<key>Height</key>
|
|
254
|
+
<integer>3024</integer>
|
|
255
|
+
<key>Width</key>
|
|
256
|
+
<integer>4032</integer>
|
|
257
|
+
</dict>
|
|
258
|
+
<dict>
|
|
259
|
+
<key>Height</key>
|
|
260
|
+
<integer>1440</integer>
|
|
261
|
+
<key>Width</key>
|
|
262
|
+
<integer>1920</integer>
|
|
263
|
+
</dict>
|
|
264
|
+
</array>
|
|
265
|
+
<key>VideoStabilizationSupported</key>
|
|
266
|
+
<true/>
|
|
267
|
+
</dict>
|
|
268
|
+
<key>fps</key>
|
|
269
|
+
<integer>30</integer>
|
|
270
|
+
<key>h</key>
|
|
271
|
+
<integer>1440</integer>
|
|
272
|
+
<key>name</key>
|
|
273
|
+
<string>1920x1440@30-420f</string>
|
|
274
|
+
<key>pf</key>
|
|
275
|
+
<integer>875704422</integer>
|
|
276
|
+
<key>presets</key>
|
|
277
|
+
<array>
|
|
278
|
+
<string>AVCaptureSessionPresetPhoto</string>
|
|
279
|
+
<string>AVCaptureSessionPresetInputPriority</string>
|
|
280
|
+
</array>
|
|
281
|
+
<key>w</key>
|
|
282
|
+
<integer>1920</integer>
|
|
283
|
+
</dict>
|
|
284
|
+
<dict>
|
|
285
|
+
<key>def</key>
|
|
286
|
+
<false/>
|
|
287
|
+
<key>extra</key>
|
|
288
|
+
<dict>
|
|
289
|
+
<key>HighResStillImageDimensions</key>
|
|
290
|
+
<array>
|
|
291
|
+
<dict>
|
|
292
|
+
<key>Height</key>
|
|
293
|
+
<integer>2268</integer>
|
|
294
|
+
<key>Width</key>
|
|
295
|
+
<integer>4032</integer>
|
|
296
|
+
</dict>
|
|
297
|
+
<dict>
|
|
298
|
+
<key>Height</key>
|
|
299
|
+
<integer>1080</integer>
|
|
300
|
+
<key>Width</key>
|
|
301
|
+
<integer>1920</integer>
|
|
302
|
+
</dict>
|
|
303
|
+
</array>
|
|
304
|
+
<key>VideoStabilizationSupported</key>
|
|
305
|
+
<true/>
|
|
306
|
+
</dict>
|
|
307
|
+
<key>fps</key>
|
|
308
|
+
<integer>30</integer>
|
|
309
|
+
<key>h</key>
|
|
310
|
+
<integer>1080</integer>
|
|
311
|
+
<key>name</key>
|
|
312
|
+
<string>1920x1080@30-420v</string>
|
|
313
|
+
<key>pf</key>
|
|
314
|
+
<integer>875704438</integer>
|
|
315
|
+
<key>presets</key>
|
|
316
|
+
<array>
|
|
317
|
+
<string>AVCaptureSessionPresetHigh</string>
|
|
318
|
+
<string>AVCaptureSessionPresetMedium</string>
|
|
319
|
+
<string>AVCaptureSessionPresetLow</string>
|
|
320
|
+
<string>AVCaptureSessionPreset1920x1080</string>
|
|
321
|
+
<string>AVCaptureSessionPreset1280x720</string>
|
|
322
|
+
<string>AVCaptureSessionPreset640x480</string>
|
|
323
|
+
<string>AVCaptureSessionPreset352x288</string>
|
|
324
|
+
<string>AVCaptureSessionPresetiFrame960x540</string>
|
|
325
|
+
<string>AVCaptureSessionPresetiFrame1280x720</string>
|
|
326
|
+
<string>AVCaptureSessionPresetInputPriority</string>
|
|
327
|
+
</array>
|
|
328
|
+
<key>w</key>
|
|
329
|
+
<integer>1920</integer>
|
|
330
|
+
</dict>
|
|
331
|
+
<dict>
|
|
332
|
+
<key>def</key>
|
|
333
|
+
<true/>
|
|
334
|
+
<key>extra</key>
|
|
335
|
+
<dict>
|
|
336
|
+
<key>HighResStillImageDimensions</key>
|
|
337
|
+
<array>
|
|
338
|
+
<dict>
|
|
339
|
+
<key>Height</key>
|
|
340
|
+
<integer>2268</integer>
|
|
341
|
+
<key>Width</key>
|
|
342
|
+
<integer>4032</integer>
|
|
343
|
+
</dict>
|
|
344
|
+
<dict>
|
|
345
|
+
<key>Height</key>
|
|
346
|
+
<integer>1080</integer>
|
|
347
|
+
<key>Width</key>
|
|
348
|
+
<integer>1920</integer>
|
|
349
|
+
</dict>
|
|
350
|
+
</array>
|
|
351
|
+
<key>VideoStabilizationSupported</key>
|
|
352
|
+
<true/>
|
|
353
|
+
</dict>
|
|
354
|
+
<key>fps</key>
|
|
355
|
+
<integer>30</integer>
|
|
356
|
+
<key>h</key>
|
|
357
|
+
<integer>1080</integer>
|
|
358
|
+
<key>name</key>
|
|
359
|
+
<string>1920x1080@30-420f</string>
|
|
360
|
+
<key>pf</key>
|
|
361
|
+
<integer>875704422</integer>
|
|
362
|
+
<key>presets</key>
|
|
363
|
+
<array>
|
|
364
|
+
<string>AVCaptureSessionPresetHigh</string>
|
|
365
|
+
<string>AVCaptureSessionPresetMedium</string>
|
|
366
|
+
<string>AVCaptureSessionPresetLow</string>
|
|
367
|
+
<string>AVCaptureSessionPreset1920x1080</string>
|
|
368
|
+
<string>AVCaptureSessionPreset1280x720</string>
|
|
369
|
+
<string>AVCaptureSessionPreset640x480</string>
|
|
370
|
+
<string>AVCaptureSessionPreset352x288</string>
|
|
371
|
+
<string>AVCaptureSessionPresetiFrame960x540</string>
|
|
372
|
+
<string>AVCaptureSessionPresetiFrame1280x720</string>
|
|
373
|
+
<string>AVCaptureSessionPresetInputPriority</string>
|
|
374
|
+
</array>
|
|
375
|
+
<key>w</key>
|
|
376
|
+
<integer>1920</integer>
|
|
377
|
+
</dict>
|
|
378
|
+
<dict>
|
|
379
|
+
<key>def</key>
|
|
380
|
+
<false/>
|
|
381
|
+
<key>extra</key>
|
|
382
|
+
<dict>
|
|
383
|
+
<key>HighResStillImageDimensions</key>
|
|
384
|
+
<array>
|
|
385
|
+
<dict>
|
|
386
|
+
<key>Height</key>
|
|
387
|
+
<integer>1080</integer>
|
|
388
|
+
<key>Width</key>
|
|
389
|
+
<integer>1920</integer>
|
|
390
|
+
</dict>
|
|
391
|
+
</array>
|
|
392
|
+
<key>VideoStabilizationSupported</key>
|
|
393
|
+
<true/>
|
|
394
|
+
</dict>
|
|
395
|
+
<key>fps</key>
|
|
396
|
+
<integer>60</integer>
|
|
397
|
+
<key>h</key>
|
|
398
|
+
<integer>1080</integer>
|
|
399
|
+
<key>name</key>
|
|
400
|
+
<string>1920x1080@60-420v</string>
|
|
401
|
+
<key>pf</key>
|
|
402
|
+
<integer>875704438</integer>
|
|
403
|
+
<key>presets</key>
|
|
404
|
+
<array/>
|
|
405
|
+
<key>w</key>
|
|
406
|
+
<integer>1920</integer>
|
|
407
|
+
</dict>
|
|
408
|
+
<dict>
|
|
409
|
+
<key>def</key>
|
|
410
|
+
<false/>
|
|
411
|
+
<key>extra</key>
|
|
412
|
+
<dict>
|
|
413
|
+
<key>HighResStillImageDimensions</key>
|
|
414
|
+
<array>
|
|
415
|
+
<dict>
|
|
416
|
+
<key>Height</key>
|
|
417
|
+
<integer>1080</integer>
|
|
418
|
+
<key>Width</key>
|
|
419
|
+
<integer>1920</integer>
|
|
420
|
+
</dict>
|
|
421
|
+
</array>
|
|
422
|
+
<key>VideoStabilizationSupported</key>
|
|
423
|
+
<true/>
|
|
424
|
+
</dict>
|
|
425
|
+
<key>fps</key>
|
|
426
|
+
<integer>60</integer>
|
|
427
|
+
<key>h</key>
|
|
428
|
+
<integer>1080</integer>
|
|
429
|
+
<key>name</key>
|
|
430
|
+
<string>1920x1080@60-420f</string>
|
|
431
|
+
<key>pf</key>
|
|
432
|
+
<integer>875704422</integer>
|
|
433
|
+
<key>presets</key>
|
|
434
|
+
<array/>
|
|
435
|
+
<key>w</key>
|
|
436
|
+
<integer>1920</integer>
|
|
437
|
+
</dict>
|
|
438
|
+
<dict>
|
|
439
|
+
<key>def</key>
|
|
440
|
+
<false/>
|
|
441
|
+
<key>extra</key>
|
|
442
|
+
<dict>
|
|
443
|
+
<key>HighResStillImageDimensions</key>
|
|
444
|
+
<array>
|
|
445
|
+
<dict>
|
|
446
|
+
<key>Height</key>
|
|
447
|
+
<integer>2160</integer>
|
|
448
|
+
<key>Width</key>
|
|
449
|
+
<integer>3840</integer>
|
|
450
|
+
</dict>
|
|
451
|
+
</array>
|
|
452
|
+
<key>VideoStabilizationSupported</key>
|
|
453
|
+
<true/>
|
|
454
|
+
</dict>
|
|
455
|
+
<key>fps</key>
|
|
456
|
+
<integer>30</integer>
|
|
457
|
+
<key>h</key>
|
|
458
|
+
<integer>2160</integer>
|
|
459
|
+
<key>name</key>
|
|
460
|
+
<string>3840x2160@30-420v</string>
|
|
461
|
+
<key>pf</key>
|
|
462
|
+
<integer>875704438</integer>
|
|
463
|
+
<key>presets</key>
|
|
464
|
+
<array>
|
|
465
|
+
<string>AVCaptureSessionPreset3840x2160</string>
|
|
466
|
+
</array>
|
|
467
|
+
<key>w</key>
|
|
468
|
+
<integer>3840</integer>
|
|
469
|
+
</dict>
|
|
470
|
+
<dict>
|
|
471
|
+
<key>def</key>
|
|
472
|
+
<false/>
|
|
473
|
+
<key>extra</key>
|
|
474
|
+
<dict>
|
|
475
|
+
<key>HighResStillImageDimensions</key>
|
|
476
|
+
<array>
|
|
477
|
+
<dict>
|
|
478
|
+
<key>Height</key>
|
|
479
|
+
<integer>2160</integer>
|
|
480
|
+
<key>Width</key>
|
|
481
|
+
<integer>3840</integer>
|
|
482
|
+
</dict>
|
|
483
|
+
</array>
|
|
484
|
+
<key>VideoStabilizationSupported</key>
|
|
485
|
+
<true/>
|
|
486
|
+
</dict>
|
|
487
|
+
<key>fps</key>
|
|
488
|
+
<integer>30</integer>
|
|
489
|
+
<key>h</key>
|
|
490
|
+
<integer>2160</integer>
|
|
491
|
+
<key>name</key>
|
|
492
|
+
<string>3840x2160@30-420f</string>
|
|
493
|
+
<key>pf</key>
|
|
494
|
+
<integer>875704422</integer>
|
|
495
|
+
<key>presets</key>
|
|
496
|
+
<array>
|
|
497
|
+
<string>AVCaptureSessionPreset3840x2160</string>
|
|
498
|
+
</array>
|
|
499
|
+
<key>w</key>
|
|
500
|
+
<integer>3840</integer>
|
|
501
|
+
</dict>
|
|
502
|
+
<dict>
|
|
503
|
+
<key>def</key>
|
|
504
|
+
<false/>
|
|
505
|
+
<key>extra</key>
|
|
506
|
+
<dict>
|
|
507
|
+
<key>HighResStillImageDimensions</key>
|
|
508
|
+
<array>
|
|
509
|
+
<dict>
|
|
510
|
+
<key>Height</key>
|
|
511
|
+
<integer>2160</integer>
|
|
512
|
+
<key>Width</key>
|
|
513
|
+
<integer>3840</integer>
|
|
514
|
+
</dict>
|
|
515
|
+
</array>
|
|
516
|
+
<key>VideoStabilizationSupported</key>
|
|
517
|
+
<true/>
|
|
518
|
+
</dict>
|
|
519
|
+
<key>fps</key>
|
|
520
|
+
<integer>60</integer>
|
|
521
|
+
<key>h</key>
|
|
522
|
+
<integer>2160</integer>
|
|
523
|
+
<key>name</key>
|
|
524
|
+
<string>3840x2160@60-420v</string>
|
|
525
|
+
<key>pf</key>
|
|
526
|
+
<integer>875704438</integer>
|
|
527
|
+
<key>presets</key>
|
|
528
|
+
<array/>
|
|
529
|
+
<key>w</key>
|
|
530
|
+
<integer>3840</integer>
|
|
531
|
+
</dict>
|
|
532
|
+
<dict>
|
|
533
|
+
<key>def</key>
|
|
534
|
+
<false/>
|
|
535
|
+
<key>extra</key>
|
|
536
|
+
<dict>
|
|
537
|
+
<key>HighResStillImageDimensions</key>
|
|
538
|
+
<array>
|
|
539
|
+
<dict>
|
|
540
|
+
<key>Height</key>
|
|
541
|
+
<integer>2160</integer>
|
|
542
|
+
<key>Width</key>
|
|
543
|
+
<integer>3840</integer>
|
|
544
|
+
</dict>
|
|
545
|
+
</array>
|
|
546
|
+
<key>VideoStabilizationSupported</key>
|
|
547
|
+
<true/>
|
|
548
|
+
</dict>
|
|
549
|
+
<key>fps</key>
|
|
550
|
+
<integer>60</integer>
|
|
551
|
+
<key>h</key>
|
|
552
|
+
<integer>2160</integer>
|
|
553
|
+
<key>name</key>
|
|
554
|
+
<string>3840x2160@60-420f</string>
|
|
555
|
+
<key>pf</key>
|
|
556
|
+
<integer>875704422</integer>
|
|
557
|
+
<key>presets</key>
|
|
558
|
+
<array/>
|
|
559
|
+
<key>w</key>
|
|
560
|
+
<integer>3840</integer>
|
|
561
|
+
</dict>
|
|
562
|
+
</array>
|
|
563
|
+
<key>front</key>
|
|
564
|
+
<dict>
|
|
565
|
+
<key>LocalizedName</key>
|
|
566
|
+
<string>Front Camera</string>
|
|
567
|
+
<key>NonLocalizedName</key>
|
|
568
|
+
<string>Front Camera</string>
|
|
569
|
+
<key>Position</key>
|
|
570
|
+
<integer>2</integer>
|
|
571
|
+
<key>UniqueID</key>
|
|
572
|
+
<string>com.apple.avfoundation.avcapturedevice.built-in_video:1</string>
|
|
573
|
+
</dict>
|
|
574
|
+
<key>props</key>
|
|
575
|
+
<dict>
|
|
576
|
+
<key>Hidden</key>
|
|
577
|
+
<false/>
|
|
578
|
+
<key>ReadyToUnhide</key>
|
|
579
|
+
<true/>
|
|
580
|
+
</dict>
|
|
581
|
+
</dict>
|
|
582
|
+
</plist>
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
{
|
|
2
|
+
"proto": 1,
|
|
3
|
+
"xcode": "27.0",
|
|
4
|
+
"xcode_build": "27A266a",
|
|
5
|
+
"source": "measured: spike m11 (Q1a-1d, Xcode GUI section), W1 e4 (measured internally), W4 e26 (measured internally, W4 e26: sanitizer, Zombies, backtrace and Guard Malloc schemes), e28 and e42 (measured internally, W4 e42: test-runner). The loader (engine/loader/loader.c) reads this file: `stuntcam up` stages restore-rules/ under $SIMCAM_HOME/restore-rules/ and records the Xcode build in sims/<udid>/config.json; the loader reads <rules_dir>/<build>.json (design §4.1, B-MF5)",
|
|
6
|
+
"root": "the simulator runtime root ($SIMULATOR_ROOT, else $DYLD_ROOT_PATH); paths below starting with / are relative to it",
|
|
7
|
+
"loader_reads": "rules[].name and rules[].libs (ordered; each {path, if?, unless?}; a condition is VAR=value, PREFIX* (any variable with that prefix) or VAR (set)). Everything else is documentation. A missing rule or file falls back to the loader's built-in copy of this file",
|
|
8
|
+
"never_dlopened": "libclang_rt.* (sanitizer runtimes) and libgmalloc.dylib, in every rule and the chain: they only work inserted at launch (ASan aborts with 'Interceptors are not working' when dlopened; a second TSan runtime gets mapped). Hard-coded in the loader, not read from here",
|
|
9
|
+
"rules": [
|
|
10
|
+
{
|
|
11
|
+
"name": "hosted-tests",
|
|
12
|
+
"when": "XCTestBundleInjectPath set and an XCTest marker present (XCInjectBundleInto, XCTestConfigurationFilePath, XCTestBundlePath or XCTestSessionIdentifier)",
|
|
13
|
+
"load": "exactly the XCTestBundleInjectPath list, de-duplicated; /usr/lib/... entries prefixed with the root; our own libraries and the never_dlopened ones skipped",
|
|
14
|
+
"measured": {
|
|
15
|
+
"xcodebuild": ["/usr/lib/libRPAC.dylib", "<DerivedData>/<App>.app/Frameworks/libXCTestBundleInject.dylib", "/usr/lib/libMainThreadChecker.dylib"],
|
|
16
|
+
"xcodebuild_asan": ["__TESTBUNDLE__/Frameworks/libclang_rt.asan_iossim_dynamic.dylib", "+ the three above (the app links its own runtime)"],
|
|
17
|
+
"xcodebuild_tsan": ["__TESTBUNDLE__/Frameworks/libclang_rt.tsan_iossim_dynamic.dylib", "+ the three above (the app links its own runtime)"],
|
|
18
|
+
"xcode_gui_cmd_u": ["/usr/lib/libRPAC.dylib", "/usr/lib/libLogRedirect.dylib", "<DerivedData>/<App>.app/Frameworks/libXCTestBundleInject.dylib", "/usr/lib/libMainThreadChecker.dylib"]
|
|
19
|
+
},
|
|
20
|
+
"without_rule": "xcodebuild test hangs (test bundle never injected)"
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"name": "ui-test-target",
|
|
24
|
+
"when": "XCODE_SCHEME_NAME set (app launched by XCUIApplication), no hosted-test rule",
|
|
25
|
+
"libs": [
|
|
26
|
+
{"path": "/usr/lib/libLogRedirect.dylib", "if": "IDE_CHOSEN_LOGGING_METHOD=2"},
|
|
27
|
+
{"path": "/usr/lib/libMainThreadChecker.dylib", "unless": "SIMCAM_MTC=0"},
|
|
28
|
+
{"path": "/usr/lib/libRPAC.dylib", "if": "PERFC_*"}
|
|
29
|
+
],
|
|
30
|
+
"engine": true
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"name": "ui-test-runner",
|
|
34
|
+
"when": "executable path contains -Runner.app/",
|
|
35
|
+
"load": "its own XCTestBundleInjectPath list (hosted-tests rule)",
|
|
36
|
+
"engine": false
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"name": "test-runner",
|
|
40
|
+
"when": "read by the runner hook (libsimcamrunnerhook.dylib, engine/runnerhook/runnerhook.m), not the loader: `stuntcam exec -- xcodebuild test` on a launchd-armed or unarmed destination sets TEST_RUNNER_DYLD_INSERT_LIBRARIES=<hook>, which replaces the runner's own insert list (XCTestBundleInjectPath then reads /usr/lib/libRPAC.dylib:<hook>:<hook>); the hook dlopens these in its constructor",
|
|
41
|
+
"libs": [
|
|
42
|
+
{"path": "@testhost/Frameworks/libXCTestBundleInject.dylib", "if": "XCInjectBundleInto"},
|
|
43
|
+
{"path": "/usr/lib/libMainThreadChecker.dylib", "unless": "SIMCAM_MTC=0"},
|
|
44
|
+
{"path": "/usr/lib/libRPAC.dylib", "if": "PERFC_*"}
|
|
45
|
+
],
|
|
46
|
+
"paths": "@testhost/<rel>: where dyld resolves XCTest's '<built products>/<App>.app/<rel>' entry: the leaf in DYLD_LIBRARY_PATH first (Xcode's iPhoneSimulator.platform/Developer/usr/lib copy), then the built and the installed host. /usr/... gets the runtime root. Launch-only libraries and already-mapped basenames are skipped",
|
|
47
|
+
"measured": {
|
|
48
|
+
"hosted_unarmed": ["/usr/lib/libRPAC.dylib", "<built products>/M11App.app/Frameworks/libXCTestBundleInject.dylib (mapped from Xcode's platform usr/lib)", "<root>/usr/lib/libMainThreadChecker.dylib"],
|
|
49
|
+
"ui_runner_boot_mode": ["/usr/lib/libRPAC.dylib", "<root>/usr/lib/libMainThreadChecker.dylib"],
|
|
50
|
+
"with_TEST_RUNNER_DYLD_INSERT_LIBRARIES": "/usr/lib/libRPAC.dylib:<hook>:<hook> (RPAC still loads; MTC and libXCTestBundleInject don't, and hosted tests hang without the latter: w4 e26)"
|
|
51
|
+
},
|
|
52
|
+
"engine": false
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
"name": "xcode-run",
|
|
56
|
+
"when": "an Xcode marker (MTC_*, PERFC_* or IDE_* variable, or DYLD_LIBRARY_PATH inside DerivedData), no rule above",
|
|
57
|
+
"libs": [
|
|
58
|
+
{"path": "/usr/lib/libLogRedirect.dylib", "if": "IDE_CHOSEN_LOGGING_METHOD=2"},
|
|
59
|
+
{"path": "/usr/lib/libMainThreadChecker.dylib", "unless": "SIMCAM_MTC=0"},
|
|
60
|
+
{"path": "/usr/lib/libRPAC.dylib", "if": "PERFC_*"},
|
|
61
|
+
{"path": "/usr/lib/libViewDebuggerSupport.dylib"}
|
|
62
|
+
],
|
|
63
|
+
"measured_set": ["libLogRedirect", "libMainThreadChecker", "libRPAC", "libViewDebuggerSupport"],
|
|
64
|
+
"not_inserted_by_xcode_27_0": ["libBacktraceRecording (any queue-debugging setting)", "libgmalloc (the scheme's DYLD_INSERT_LIBRARIES option)", "sanitizer runtimes (the app links them)"],
|
|
65
|
+
"notes": "each of these removes itself from DYLD_INSERT_LIBRARIES on load, so only libViewDebuggerSupport is visible in a plain run's env; MTC has no on/off signal (SIMCAM_MTC=0 skips it). Under ⌘R nothing in the app names the launching Xcode (e26), so which file applies comes from the build recorded at arm time"
|
|
66
|
+
}
|
|
67
|
+
],
|
|
68
|
+
"switches": {"SIMCAM_XCODE_LIBS=0": "no restores", "SIMCAM_MTC=0": "skip libMainThreadChecker"},
|
|
69
|
+
"unverified": ["Xcode 26.6 / 27.1 / 27.2 (U4 part 2)", "Detox / idb inserts (displaced; design §4.1 rule 4: announced, not restored)"]
|
|
70
|
+
}
|