Last updated: 2026-04-02
The current machine has already been brought into a working macOS app development state.
Verified commands:
xcodebuild -version
xcrun --sdk macosx --show-sdk-versionVerified output on this machine:
Xcode 26.4Build version 17E192macOS SDK 26.4
Install the full Xcode app from the Mac App Store, then select it as the active developer directory:
sudo xcode-select -s /Applications/Xcode.app/Contents/Developer
sudo xcodebuild -runFirstLaunchInstall project helper tools:
brew install xcodegen swiftformat xcbeautifyCurrent project usage:
xcodegen- regenerate
Topleaf.xcodeprojfromproject.yml
- regenerate
swiftformat- keep Swift formatting consistent
xcbeautify- optional readable wrapper for
xcodebuildlogs
- optional readable wrapper for
Optional:
brew install swiftlintRun this after adding or removing source files:
xcodegen generatexcodebuild -project Topleaf.xcodeproj -scheme Topleaf -configuration Debug -derivedDataPath /tmp/TopleafDerivedData buildxcodebuild -project Topleaf.xcodeproj -scheme Topleaf -configuration Debug -derivedDataPath /tmp/TopleafDerivedData testswiftformat Sources Tests- The generated project lives at
/Users/lyk/Prj/topleaf/Topleaf.xcodeproj - Source of truth for project structure is
/Users/lyk/Prj/topleaf/project.yml - The local git remote is:
git@github.com:C23333/topleaf.gitxcodebuildmay print CoreSimulator-related warnings in CLI environments even when macOS app build/test succeeds
Verified on 2026-04-07:
- build passed
- tests passed
- total tests passing:
14