Skip to content

Add Xcode example project for build system integration#28

Merged
obj-p merged 2 commits intomainfrom
build-system
Mar 20, 2026
Merged

Add Xcode example project for build system integration#28
obj-p merged 2 commits intomainfrom
build-system

Conversation

@obj-p
Copy link
Owner

@obj-p obj-p commented Mar 20, 2026

Summary

  • Adds examples/xcode/ — minimal SwiftUI framework managed by XcodeGen (project.yml), using Mint (Mintfile) for tool installation
  • Same ToDo app (Item model + ToDoView with #Preview) as spm/ and bazel/ examples, duplicated for test isolation
  • Framework target with supportedDestinations: [macOS, iOS], Swift 6.0 strict concurrency, macOS 14 / iOS 17 deployment targets
  • .xcodeproj is git-ignored — regenerated from project.yml via xcodegen generate
  • Updates bootstrap skill with Xcode example setup step (step 5)
  • Updates examples/README.md to reflect the new example

Setup

brew install mint
cd examples/xcode
mint bootstrap        # installs XcodeGen from Mintfile
xcodegen generate     # creates ToDo.xcodeproj
xcodebuild build -project ToDo.xcodeproj -scheme ToDo -destination 'platform=macOS'

Test plan

  • mint bootstrap installs XcodeGen 2.42.0
  • xcodegen generate creates ToDo.xcodeproj from project.yml
  • xcodebuild build succeeds for macOS destination
  • xcodebuild build succeeds for iOS Simulator destination
  • .swiftmodule produced in DerivedData for both platforms
  • swift-format lint --strict passes on all new Swift files
  • /bootstrap skill includes Xcode example step

Closes #16 (example project portion)

🤖 Generated with Claude Code

obj-p and others added 2 commits March 20, 2026 10:13
Minimal SwiftUI framework managed by XcodeGen, with Mint for tool
installation. Same ToDo app (Item + ToDoView) as spm/bazel examples,
duplicated for test isolation. Updates bootstrap skill with Xcode
setup step.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
- Add DEFINES_MODULE: YES to project.yml for explicit .swiftmodule generation
- Use `mint run xcodegen generate` instead of bare `xcodegen` (no PATH assumption)
- Add note that integration test prompt is aspirational until XcodeBuildSystem is implemented

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@obj-p obj-p merged commit 1b615ca into main Mar 20, 2026
2 checks passed
@obj-p obj-p deleted the build-system branch March 20, 2026 14:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Xcode build system integration (.xcodeproj)

1 participant