Update README.md

This commit is contained in:
samhenrigold
2025-09-07 10:09:16 -04:00
committed by GitHub
parent d0492d9fa0
commit 1752fa12f3

View File

@@ -50,51 +50,6 @@ LEGO Batman 3: Beyond Gotham. But you knew that already.
Yes, never click "Start Audio". But this energy isn't encouraged. Yes, never click "Start Audio". But this energy isn't encouraged.
## Build and Run (Terminal) ## Building
You can build and launch the app without Xcodes UI using `xcodebuild`. According to [this issue](https://github.com/samhenrigold/LidAngleSensor/issues/12), building requires having Xcode installed. I've only tested this on Xcode 26. YMMV.
### Prerequisites
- macOS with Xcode or Xcode Command Line Tools (`xcode-select --install` and maybe `xcodebuild -runFirstLaunch`)
- Optional: GitHub CLI (`gh`) — or use `git clone` instead
### Clone
Using GitHub CLI:
```bash
gh repo clone samhenrigold/LidAngleSensor
cd LidAngleSensor
```
Or with Git:
```bash
git clone https://github.com/samhenrigold/LidAngleSensor.git
cd LidAngleSensor
```
### Build (Debug)
```bash
xcodebuild \
-project "LidAngleSensor.xcodeproj" \
-scheme "LidAngleSensor" \
-configuration Debug \
-derivedDataPath build \
CODE_SIGNING_ALLOWED=NO CODE_SIGNING_REQUIRED=NO CODE_SIGN_IDENTITY="" DEVELOPMENT_TEAM="" \
-arch arm64
```
Notes:
- On Apple Silicon, `-arch arm64` is correct. On Intel Macs, you can use `-arch x86_64` or omit `-arch`. Intel macs don't have the feature tho, so it won't be very useful.
- Disabling code signing is fine for local debug builds if you are not Mr. Gold.
### Run
```bash
open build/Build/Products/Debug/LidAngleSensor.app
```
If you built a Release configuration, adjust the path accordingly (replace `Debug` with `Release`).