Skip to main content
  1. Tutorials/

macOS Tutorial

·1 min
Author
Zylix Team
Build once, run natively on 6 platforms

Overview
#

Run the macOS SwiftUI demo app and explore the Todo flow.

Prerequisites
#

  • macOS 13+
  • Xcode 16+
  • XcodeGen

1. Clone the Repo
#

git clone https://github.com/kotsutsumi/zylix.git
cd zylix

2. Generate the Xcode Project
#

cd platforms/macos
xcodegen generate

3. Build and Run
#

open Zylix.xcodeproj

Run the Zylix scheme in Xcode.

4. Confirm State Updates
#

Add a new Todo item and verify the list updates immediately.

Key files:

  • platforms/macos/Zylix/Sources/TodoView.swift (Todo UI)
  • platforms/macos/Zylix/Sources/TodoViewModel.swift (State model)

Troubleshooting
#

  • XcodeGen not found: brew install xcodegen.
  • Build fails: ensure Xcode 16+ is installed.

Next Steps
#