Files
honeyDueKMP/iosApp/iosApp/SETUP_INSTRUCTIONS.md
2025-11-05 17:15:17 -06:00

1.5 KiB

iOS Project Setup Instructions

Adding New Subview Files to Xcode

Four new Swift files containing reusable subviews have been created but need to be added to the Xcode project:

  1. CommonSubviews.swift - Error views
  2. AuthSubviews.swift - Login/Register headers
  3. ResidenceSubviews.swift - Property-related views
  4. TaskSubviews.swift - Task-related views

Steps to Add Files (30 seconds):

  1. Open iosApp.xcodeproj in Xcode
  2. Right-click on the iosApp folder in the Project Navigator
  3. Select "Add Files to 'iosApp'..."
  4. Navigate to the iosApp/iosApp/ directory
  5. Select all 4 *Subviews.swift files:
    • AuthSubviews.swift
    • CommonSubviews.swift
    • ResidenceSubviews.swift
    • TaskSubviews.swift
  6. Make sure "Copy items if needed" is UNchecked (files are already in the project)
  7. Make sure "Add to targets: iosApp" is checked
  8. Click "Add"

Verify

Build the project (Cmd+B). All errors should be resolved.

File Locations

All files are located in: /Users/treyt/Desktop/code/myCrib/MyCribKMM/iosApp/iosApp/

iosApp/
└── iosApp/
    ├── AuthSubviews.swift          ← Add this
    ├── CommonSubviews.swift        ← Add this
    ├── ResidenceSubviews.swift     ← Add this
    ├── TaskSubviews.swift          ← Add this
    ├── Login/
    ├── Register/
    ├── Residence/
    └── Task/

That's it! The project should now compile without errors.