Rebrand from Casera/MyCrib to honeyDue
Total rebrand across KMM project: - Kotlin package: com.example.casera -> com.tt.honeyDue (dirs + declarations) - Gradle: rootProject.name, namespace, applicationId - Android: manifest, strings.xml (all languages), widget resources - iOS: pbxproj bundle IDs, Info.plist, entitlements, xcconfig - iOS directories: Casera/ -> HoneyDue/, CaseraTests/ -> HoneyDueTests/, etc. - Swift source: all class/struct/enum renames - Deep links: casera:// -> honeydue://, .casera -> .honeydue - App icons replaced with honeyDue honeycomb icon - Domains: casera.treytartt.com -> honeyDue.treytartt.com - Bundle IDs: com.tt.casera -> com.tt.honeyDue - Database table names preserved Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -8,21 +8,21 @@ When compiling tests, you're seeing:
|
||||
No such module 'iosApp'
|
||||
```
|
||||
|
||||
This means the test target (`MyCribTests`) is not properly configured to access the main app target (`iosApp`).
|
||||
This means the test target (`HoneyDueTests`) is not properly configured to access the main app target (`iosApp`).
|
||||
|
||||
## Solution: Configure Test Target in Xcode
|
||||
|
||||
### Step 1: Open Xcode Project
|
||||
|
||||
```bash
|
||||
cd /Users/treyt/Desktop/code/MyCrib/MyCribKMM/iosApp
|
||||
cd /Users/treyt/Desktop/code/HoneyDue/HoneyDueKMM/iosApp
|
||||
open iosApp.xcodeproj
|
||||
```
|
||||
|
||||
### Step 2: Add Target Dependency
|
||||
|
||||
1. **Select the project** in the Project Navigator (top item, blue icon)
|
||||
2. **Select `MyCribTests` target** in the targets list (middle column)
|
||||
2. **Select `HoneyDueTests` target** in the targets list (middle column)
|
||||
3. **Go to "Build Phases" tab** (top of editor)
|
||||
4. **Expand "Dependencies" section**
|
||||
5. **Click the "+" button** under Dependencies
|
||||
@@ -31,7 +31,7 @@ open iosApp.xcodeproj
|
||||
|
||||
### Step 3: Configure Test Host
|
||||
|
||||
1. Still in **`MyCribTests` target** → **Build Settings** tab
|
||||
1. Still in **`HoneyDueTests` target** → **Build Settings** tab
|
||||
2. **Search for "Test Host"**
|
||||
3. Set **Test Host** to:
|
||||
```
|
||||
@@ -57,7 +57,7 @@ open iosApp.xcodeproj
|
||||
2. Go to **Build Settings** tab
|
||||
3. **Search for "Product Module Name"**
|
||||
4. Verify it says **`iosApp`**
|
||||
- If it's different (e.g., "MyCrib"), you need to update your imports
|
||||
- If it's different (e.g., "HoneyDue"), you need to update your imports
|
||||
|
||||
### Step 6: Clean and Build
|
||||
|
||||
@@ -84,12 +84,12 @@ If you prefer command-line configuration, you can use `xcodebuild` with PlistBud
|
||||
|
||||
### What It Should Look Like:
|
||||
|
||||
**MyCribTests Target → Build Phases → Dependencies:**
|
||||
**HoneyDueTests Target → Build Phases → Dependencies:**
|
||||
```
|
||||
✅ iosApp (target)
|
||||
```
|
||||
|
||||
**MyCribTests Target → Build Settings:**
|
||||
**HoneyDueTests Target → Build Settings:**
|
||||
```
|
||||
Test Host: $(BUILT_PRODUCTS_DIR)/iosApp.app/iosApp
|
||||
Bundle Loader: $(TEST_HOST)
|
||||
@@ -140,7 +140,7 @@ Product Module Name: iosApp
|
||||
|
||||
After making changes, verify:
|
||||
|
||||
- [ ] `MyCribTests` target has `iosApp` in Dependencies
|
||||
- [ ] `HoneyDueTests` target has `iosApp` in Dependencies
|
||||
- [ ] Test Host is set to `$(BUILT_PRODUCTS_DIR)/iosApp.app/iosApp`
|
||||
- [ ] Bundle Loader is set to `$(TEST_HOST)`
|
||||
- [ ] `iosApp` target has "Enable Testability" = YES (Debug)
|
||||
|
||||
Reference in New Issue
Block a user