|
| 1 | +# Tuist Setup for NavigationSplitViewDemo |
| 2 | + |
| 3 | +## Configuration |
| 4 | + |
| 5 | +The demo app is configured to support: |
| 6 | +- ✅ **iPhone** - iOS 17.0+ |
| 7 | +- ✅ **iPad** - iOS 17.0+ (native iPad support) |
| 8 | +- ✅ **Mac** - macOS 14.0+ (native Mac support, NOT Designed for iPad) |
| 9 | + |
| 10 | +## Features Configured |
| 11 | + |
| 12 | +### Platform Support |
| 13 | +- `destinations: [.iPhone, .iPad, .mac]` - Native support for all platforms |
| 14 | +- iPhone: portrait + landscape |
| 15 | +- iPad: all orientations |
| 16 | +- Mac: native application |
| 17 | + |
| 18 | +### Deployment Targets |
| 19 | +- iOS: 17.0 |
| 20 | +- macOS: 14.0 |
| 21 | + |
| 22 | +## Installation & Generation |
| 23 | + |
| 24 | +### 1. Install Tuist (if not already installed) |
| 25 | + |
| 26 | +```bash |
| 27 | +curl -Ls https://install.tuist.io | bash |
| 28 | +``` |
| 29 | + |
| 30 | +Or with Homebrew: |
| 31 | +```bash |
| 32 | +brew install tuist |
| 33 | +``` |
| 34 | + |
| 35 | +### 2. Generate Xcode Project |
| 36 | + |
| 37 | +From the Demo directory: |
| 38 | +```bash |
| 39 | +cd Demo |
| 40 | +tuist generate |
| 41 | +``` |
| 42 | + |
| 43 | +This will create: |
| 44 | +- `NavigationSplitViewDemo.xcodeproj` - with native Mac support |
| 45 | +- Proper framework linking to parent library |
| 46 | +- All assets and resources configured |
| 47 | + |
| 48 | +### 3. Build & Run |
| 49 | + |
| 50 | +Open the generated project: |
| 51 | +```bash |
| 52 | +open NavigationSplitViewDemo.xcodeproj |
| 53 | +``` |
| 54 | + |
| 55 | +Then: |
| 56 | +- **For iPhone/iPad**: Select iPhone/iPad simulator or device |
| 57 | +- **For Mac**: Select "My Mac" as destination → native macOS app |
| 58 | + |
| 59 | +## What Changed vs. Original |
| 60 | + |
| 61 | +| Before | After | |
| 62 | +|--------|-------| |
| 63 | +| `destinations: .iOS` | `destinations: [.iPhone, .iPad, .mac]` | |
| 64 | +| iPhone only | **Native Mac support** | |
| 65 | +| "Designed for iPad" | **Native Mac application** | |
| 66 | +| No macOS option | macOS 14.0+ support | |
| 67 | + |
| 68 | +## Notes |
| 69 | + |
| 70 | +- The app will be a **native macOS application**, not "Designed for iPad" |
| 71 | +- Full NavigationSplitView adaptive layout works on all platforms |
| 72 | +- macOS features adaptive UI with proper column visibility |
| 73 | +- All SwiftUI features work natively on Mac |
| 74 | + |
| 75 | +## Troubleshooting |
| 76 | + |
| 77 | +If you get "tuist: command not found": |
| 78 | +1. Install Tuist: `curl -Ls https://install.tuist.io | bash` |
| 79 | +2. Add to PATH if needed: `export PATH="/usr/local/bin:$PATH"` |
| 80 | +3. Run `tuist generate` again |
| 81 | + |
| 82 | +## Next Steps |
| 83 | + |
| 84 | +After generating: |
| 85 | +1. Open project in Xcode |
| 86 | +2. Select "My Mac" as destination |
| 87 | +3. Build & Run → Native macOS app! 🎉 |
0 commit comments