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
6 changes: 4 additions & 2 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,16 @@ macOS menu-bar dictionary app (올ㅋ사전). Built with Tuist, signed with fast
```bash
make install # tuist install (resolve dependencies)
make generate # tuist generate --no-open
make build # tuist build Allkdic
make build # generate + tuist xcodebuild build
make run # build and run (logs to terminal)
make test # run unit tests
make test # generate + tuist xcodebuild test
make lint # swiftformat --lint
make format # swiftformat
make clean # tuist clean
```

`build` and `test` depend on `generate`, then drive the generated workspace through `tuist xcodebuild` (plain `xcodebuild` plus Tuist insights). `tuist build` is deprecated and must not be reintroduced. Build products go to the pinned `.build/DerivedData` (gitignored), which is where `make run` looks for `Allkdic.app`.

The scheme and workspace are both named `Allkdic`. Version lives in `Allkdic/Allkdic-Info.plist` (`CFBundleShortVersionString` + `CFBundleVersion`), which `Project.swift` references via `infoPlist: .file(...)`.

## Release
Expand Down
22 changes: 14 additions & 8 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,23 +12,29 @@
# make release # App Store 배포 (로컬)
# make release-ci # App Store 배포 (CI, 환경변수 사용)

.PHONY: install generate build run test clean lint format bump release release-ci
.PHONY: install generate build run test clean lint lint-ci format bump release release-ci

# `tuist build` is deprecated; the supported path is to generate the project and
# drive it through the `tuist xcodebuild` wrapper (plain xcodebuild plus Tuist
# insights). DERIVED_DATA is pinned so `run` knows exactly where the .app lands
# instead of globbing Xcode's hashed DerivedData directory.
XCODEBUILD_FLAGS = -workspace Allkdic.xcworkspace -scheme Allkdic -configuration Debug -destination 'platform=macOS'
DERIVED_DATA = .build/DerivedData

install:
tuist install

generate:
tuist generate --no-open

build:
tuist build Allkdic
build: generate
tuist xcodebuild build $(XCODEBUILD_FLAGS) -derivedDataPath $(DERIVED_DATA)

run:
@tuist build Allkdic
@~/Library/Developer/Xcode/DerivedData/Allkdic-*/Build/Products/Debug/Allkdic.app/Contents/MacOS/Allkdic
run: build
@$(DERIVED_DATA)/Build/Products/Debug/Allkdic.app/Contents/MacOS/Allkdic

test:
xcodebuild test -workspace Allkdic.xcworkspace -scheme Allkdic -destination 'platform=macOS' | xcpretty
test: generate
tuist xcodebuild test $(XCODEBUILD_FLAGS) -derivedDataPath $(DERIVED_DATA)

clean:
tuist clean
Expand Down
Loading