SPB Git

Repository Public License

setup.md 4.4 KB 90 lines markdown

1<!--2ORIX Camera3File: docs/development/setup.md4Author: Simon-Pierre Boucher5Contact: contact@spboucher.ai6-->78# Development Setup910## Requirements1112| Tool | Version used | Notes |13|---|---|---|14| macOS | 27.0 | Apple silicon |15| Xcode | 27.2 (27B52) | iOS 27.2 SDK, Swift 6.4 toolchain |16| iOS Simulator runtime | 26.5 | the only runtime installed on the development Mac |17| XcodeGen | Homebrew | `brew install xcodegen` |18| Deployment target | iOS 18.0 | package also builds for macOS 15 (tests) |1920No third-party package, no CocoaPods, no Carthage. The Xcode project is generated and not committed.2122## First build2324```bash25Scripts/build.sh generate            # ORIXCamera.xcodeproj from project.yml26xcrun simctl create "ORIXCamera iPhone" com.apple.CoreSimulator.SimDeviceType.iPhone-17-Pro com.apple.CoreSimulator.SimRuntime.iOS-26-527xcrun simctl create "ORIXCamera iPad" com.apple.CoreSimulator.SimDeviceType.iPad-Pro-13-inch-M5-12GB com.apple.CoreSimulator.SimRuntime.iOS-26-528Scripts/build.sh kit                 # engine tests on the Mac29Scripts/build.sh debug               # Debug build for "ORIXCamera iPhone"30Scripts/sim.sh build/shots/first.png 6 -ORIXUITest YES -ORIXReset YES31```3233The scripts use their own DerivedData in `build/DerivedData`, keep full logs in `build/logs/`, and print only errors and results. `ORIX_SIM` selects another simulator.3435In the Simulator the app runs on its virtual camera: you see the procedural test scene with a "SIMULATOR · TEST SCENE" badge.3637## Running on a device3839Nobody has done this yet. To do it:40411. Set your team in `project.yml` (`DEVELOPMENT_TEAM`), run `Scripts/build.sh generate`.422. Open the project, select the device, run. Automatic signing registers the bundle identifier `ai.spboucher.orix.camera`.433. Follow the device test plan in [testing.md](testing.md) and record the results.4445A device build without signing can be checked from the command line:4647```bash48xcodebuild -project ORIXCamera.xcodeproj -scheme ORIXCamera -configuration Debug \49  -destination "generic/platform=iOS" -derivedDataPath build/DerivedData-device CODE_SIGNING_ALLOWED=NO build50```5152This is the only way `DeviceCameraBackend` is compiled: it is excluded from Simulator builds.5354## Project settings worth knowing5556| Setting | Value | Why |57|---|---|---|58| `SWIFT_VERSION` | 6.0, strict concurrency `complete` | data-race safety checked by the compiler |59| `SWIFT_DEFAULT_ACTOR_ISOLATION` | `MainActor` (app target) | UI code is main-actor by default; off-main types are marked `nonisolated` |60| `GENERATE_INFOPLIST_FILE` | NO | `App/Resources/Info.plist` is explicit |61| Orientations | iPhone portrait; iPad all | `UIRequiresFullScreen` is set: the camera needs the full screen |62| `ITSAppUsesNonExemptEncryption` | false | no encryption beyond the system's |6364## Launch arguments (Debug only)6566Defined in `App/Sources/App/DebugHooks.swift` and `App/Sources/Features/Library/LibraryModel.swift`. A Release build ignores all of them.6768| Argument | Effect |69|---|---|70| `-ORIXUITest YES` | isolated library in the temporary directory, welcome skipped, animations and haptics off, sheets open at full height |71| `-ORIXReset YES` | wipe that library and the settings first |72| `-ORIXWelcome YES` | show the first-launch screen |73| `-ORIXMode auto\|photo\|video\|creative\|analysis` | start in a mode |74| `-ORIXCreative <tool>` | select a creative tool |75| `-ORIXTools peaking,zebra,shadows,falseColor,clipping,rgb,bigHistogram,golden,safe,look,wide` | turn monitoring aids on |76| `-ORIXDemo YES` | seed an empty library with six captures rendered from the synthetic scene and one album |77| `-ORIXOpen library\|editor\|settings` | open a screen at launch |78| `-ORIXLibraryShow viewer\|metadata\|export\|albums\|duplicates`, `-ORIXEditorTab <tab>` | open a library sub-screen or an editor tab |79| `-ORIXDenied YES` | Simulator: behave as if camera access were refused |8081When calling `Scripts/sim.sh` from zsh, pass arguments as separate words or as an array; an unquoted variable holding several arguments is passed as one.8283## Repository hygiene8485`Scripts/check.sh` fails if a first-party Swift, shell or Python file lacks the author header, or if a tracked or untracked file looks like signing material or contains something shaped like a credential or a private network address. Run it before every commit.8687## Icon8889`design/icon/build.py` regenerates the masters, the asset catalog icons and the documentation images. See [../design/icon-design.md](../design/icon-design.md).90
Files main
Menu

Theme