Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: CI

on:
push:
branches: [main]
pull_request:
branches: [main]

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
test:
name: Build & Test
runs-on: macos-26
steps:
- uses: actions/checkout@v4
- uses: jdx/mise-action@v3
- run: tuist test
48 changes: 11 additions & 37 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
# Xcode
#
# gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore
# Tuist managed
Derived/

## User settings
# Xcode
build/
DerivedData/
*.xcodeproj
*.xcworkspace
xcuserdata/

## Obj-C/Swift specific
*.hmap

## App packaging
*.ipa
*.dSYM.zip
Expand All @@ -18,45 +18,19 @@ timeline.xctimeline
playground.xcworkspace

# Swift Package Manager
#
# Add this line if you want to avoid checking in source code from Swift Package Manager dependencies.
# Packages/
# Package.pins
# Package.resolved
# *.xcodeproj
#
# Xcode automatically generates this directory with a .xcworkspacedata file and xcuserdata
# hence it is not needed unless you have added a package configuration file to your project
# .swiftpm

.build/

# CocoaPods
#
# We recommend against adding the Pods directory to your .gitignore. However
# you should judge for yourself, the pros and cons are mentioned at:
# https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control
#
# Pods/
#
# Add this line if you want to avoid checking in source code from the Xcode workspace
# *.xcworkspace
Pods/

# Carthage
#
# Add this line if you want to avoid checking in source code from Carthage dependencies.
# Carthage/Checkouts

Carthage/Build/

# fastlane
#
# It is recommended to not store the screenshots in the git repo.
# Instead, use fastlane to re-generate the screenshots whenever they are needed.
# For more information about the recommended setup visit:
# https://docs.fastlane.tools/best-practices/source-control/#source-control

fastlane/report.xml
fastlane/Preview.html
fastlane/screenshots/**/*.png
fastlane/test_output

# System
.DS_Store
2 changes: 2 additions & 0 deletions .mise.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[tools]
tuist = "4.40.0"
42 changes: 42 additions & 0 deletions AGENTS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# Stuff – Repository Shape

## Build system

| Tool | Version | Pinned via |
|-------|---------|--------------|
| Tuist | 4.40.0 | `.mise.toml` |

Tuist manifests live at the repo root (`Project.swift`, `Tuist.swift`).
Run `./ide` (or `./ide -i` to also install dependencies) to regenerate the
Xcode project.

## Targets

_No apps or modules yet._ Add targets to `Project.swift` using `macApp()` or `framework()` helpers.

## Deployment

| Platform | Minimum OS |
|------------------------------|-------------|
| iPhone, iPad, Mac Catalyst | iOS 26.0 |
| macOS (native) | macOS 26.0 |

## Directory layout

```
<TargetName>/
Sources/ – production code
Tests/ – unit tests (Swift Testing, not XCTest)
Resources/ – asset catalogs, etc. (apps only)
```

## Conventions

- **Swift Testing** (`import Testing`) for all unit tests – do not use XCTest.
- Generated `.xcodeproj` and `Derived/` are git-ignored; never commit them.
- Bundle IDs follow `com.stuff.<suffix>`.

## Plans

Implementation plans go in `Plans/` and are named
`<NNN>-<YYYY-MM-DD>-<slug>.md`.
Empty file added Plans/.gitkeep
Empty file.
70 changes: 70 additions & 0 deletions Project.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
import ProjectDescription

let macDestinations: Destinations = [.mac]
let macDeployment: DeploymentTargets = .macOS("26.0")

func framework(
_ name: String,
bundleIdSuffix: String,
dependencies: [TargetDependency] = []
) -> [Target] {
[
.target(
name: name,
destinations: macDestinations,
product: .framework,
bundleId: "com.stuff.\(bundleIdSuffix)",
deploymentTargets: macDeployment,
sources: ["\(name)/Sources/**"],
dependencies: dependencies
),
.target(
name: "\(name)Tests",
destinations: macDestinations,
product: .unitTests,
bundleId: "com.stuff.\(bundleIdSuffix).tests",
deploymentTargets: macDeployment,
sources: ["\(name)/Tests/**"],
dependencies: [.target(name: name)]
),
]
}
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Framework helper destinations incompatible with macApp targets

Medium Severity

The framework() helper uses mobileDestinations ([.iPhone, .iPad, .macCatalyst]) while macApp() uses macDestinations ([.mac]). Since .macCatalyst and .mac are distinct Tuist destinations with incompatible platform binaries, a native Mac app created with macApp() cannot depend on a framework created with framework(). The two primary helpers documented in AGENTS.md as the way to add targets cannot actually compose together.

Additional Locations (1)
Fix in Cursor Fix in Web


func macApp(
_ name: String,
bundleIdSuffix: String,
infoPlist: [String: Plist.Value] = [:],
dependencies: [TargetDependency] = []
) -> [Target] {
[
.target(
name: name,
destinations: macDestinations,
product: .app,
bundleId: "com.stuff.\(bundleIdSuffix)",
deploymentTargets: macDeployment,
infoPlist: .extendingDefault(with: infoPlist),
sources: ["\(name)/Sources/**"],
resources: ["\(name)/Resources/**"],
dependencies: dependencies
),
.target(
name: "\(name)Tests",
destinations: macDestinations,
product: .unitTests,
bundleId: "com.stuff.\(bundleIdSuffix).tests",
deploymentTargets: macDeployment,
sources: ["\(name)/Tests/**"],
dependencies: [.target(name: name)]
),
]
}

let project = Project(
name: "Stuff",
options: .options(
defaultKnownRegions: ["en"],
developmentRegion: "en"
),
targets: []
)
36 changes: 35 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,36 @@
# Stuff
Random apps and stuff

Random apps and stuff.

## Requirements

- Xcode 26+
- [mise](https://mise.jdx.dev) (manages Tuist version)
- iOS 26.0+

## Getting started

```bash
# Install mise (if needed)
brew install mise

# Generate the Xcode project
./ide

# Or install dependencies first, then generate
./ide -i
```

## Project structure

```
Project.swift Tuist project manifest
Tuist.swift Tuist configuration
.mise.toml Pins Tuist 4.40.0
ide Dev script – regenerates Xcode project
AGENTS.md Repository shape for AI agents
```

## License

Apache 2.0 – see [LICENSE](LICENSE).
3 changes: 3 additions & 0 deletions Tuist.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import ProjectDescription

let config = Config()
20 changes: 20 additions & 0 deletions ide
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#!/bin/bash
set -euo pipefail

INSTALL=false

for arg in "$@"; do
case "$arg" in
-i|--install)
INSTALL=true
;;
esac
done

if [ "$INSTALL" = true ]; then
echo "==> tuist install"
mise exec -- tuist install
fi

echo "==> tuist generate"
mise exec -- tuist generate
Loading