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>
2.0 KiB
2.0 KiB
Fix HoneyDueTests Target Configuration
The Problem
The tests are failing with "No target application path specified" because the test target's TEST_HOST setting is hardcoded to a wrong path:
TEST_HOST = /Users/treyt/Desktop/code/HoneyDue/HoneyDueKMM/iosApp/build/Release-iphoneos/HoneyDue.app//HoneyDue
This path doesn't exist when running tests in Debug mode on the simulator.
The Fix (Manual - Do This in Xcode)
-
Open the project in Xcode:
cd /Users/treyt/Desktop/code/HoneyDue/HoneyDueKMM/iosApp open iosApp.xcodeproj -
Select the HoneyDueTests target:
- Click on the project in the Project Navigator (blue icon at top)
- Select HoneyDueTests from the TARGETS list
-
Go to Build Settings:
- Click the Build Settings tab
- Make sure "All" and "Combined" are selected (not "Basic" or "Customized")
-
Search for "TEST_HOST":
- Use the search box at top right
- Type "TEST_HOST"
-
Set TEST_HOST value:
- Double-click the value field
- Change from:
/Users/treyt/Desktop/code/HoneyDue/HoneyDueKMM/iosApp/build/Release-iphoneos/HoneyDue.app//HoneyDue - To:
$(BUILT_PRODUCTS_DIR)/HoneyDue.app/HoneyDue - Press Enter
-
Verify BUNDLE_LOADER:
- Clear the search, search for "BUNDLE_LOADER"
- It should be set to:
$(TEST_HOST) - If not, set it to that value
-
Clean and rebuild:
- Product → Clean Build Folder (Cmd+Shift+K)
- Product → Build (Cmd+B)
-
Run tests:
- Product → Test (Cmd+U)
- Or click the diamond icon next to any test method
Verification
After making these changes, run:
xcodebuild -project iosApp.xcodeproj -target HoneyDueTests -showBuildSettings | grep TEST_HOST
Should output:
TEST_HOST = $(BUILT_PRODUCTS_DIR)/HoneyDue.app/HoneyDue
NOT a hardcoded absolute path.
Why This Happened
The test target was likely created manually or the project was moved, causing Xcode to lose the proper build settings reference.