Where iOS app, shared StuffTestHost, and iOS StuffCore#5
Merged
Conversation
Relocate framework sources and tests under Shared/ for shared layout. Made-with: Cursor
- Move StuffCore to Shared/ as an iOS framework; hosted StuffCoreTests use StuffTestHost - Add Shared/StuffTestHost (scene-based UIKit host) for shared TEST_HOST - Add Where app, WhereCore, WhereUI, WhereTesting, and tests under Where/ - Extend Project.swift with iOS helpers and hosted unit-test wiring - Pin CI tuist test to an iOS Simulator destination; update AGENTS.md and README Made-with: Cursor
- Add root Package.swift (StuffCore, WhereCore, WhereUI, WhereTesting) - Slim Project.swift to Package.local + unitTests helper like Broadway - Document the split in AGENTS.md and README.md Made-with: Cursor
1adf938 to
d38bbf9
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This branch reshapes the repo around a Broadway-style split: libraries live in a root Swift package, and Tuist only generates the Xcode project for apps and test bundles that consume that package via
Package.local.Layout and targets
Shared/StuffCore/— StuffCore (iOS library in SPM); StuffCoreTests run in-process with StuffTestHost + WhereTesting (same hosted pattern as the Where package tests).Shared/StuffTestHost/— minimal UIKit app used as the shared test host for hosted unit tests.Where/— Where iOS app (Where/Where/Sources), WhereCore / WhereUI / WhereTesting SwiftPM targets, plus WhereTests, WhereCoreTests, and WhereUITests (the latter two hosted like StuffCore tests).Build system
Package.swift(repo root) — products StuffCore, WhereCore, WhereUI, WhereTesting; iOS 26 minimum.Project.swift—Package.local(path: .relativeToRoot(".")), a smallunitTests(...)helper for hosted test bundles, and Tuist targets for Where, StuffTestHost, and the test targets listed above.Docs and CI
AGENTS.md/README.md— document the workspace (openStuff.xcworkspace), the package + Tuist layout, and how to run./ide/tuist generate/ tests..github/workflows/ci.yml—tuist testwith--no-selective-testingand a pinned iOS Simulator destination so CI runs the full suite predictably.Test plan
mise exec -- tuist generate(openStuff.xcworkspaceafter generate)mise exec -- tuist test --no-selective-testing -- -destination 'platform=iOS Simulator,name=iPhone 17,OS=26.2'(adjust name/OS to match an installed runtime)Made with Cursor