Skip to content

Follow a custom SYMROOT when locating the built app#294

Merged
hyzyla merged 1 commit into
mainfrom
issue292-custom-symroot
Jun 19, 2026
Merged

Follow a custom SYMROOT when locating the built app#294
hyzyla merged 1 commit into
mainfrom
issue292-custom-symroot

Conversation

@hyzyla

@hyzyla hyzyla commented Jun 19, 2026

Copy link
Copy Markdown
Collaborator

Fixes #292. When a project relocates its build products with a custom SYMROOT (e.g. SYMROOT = $(SRCROOT)/../build/products in an xcconfig), the bundled resolver kept BUILD_DIR/BUILD_ROOT hard-wired to the DerivedData layout, so TARGET_BUILD_DIR pointed at the wrong place and launch failed with "App path does not exist". This derives BUILD_DIR/BUILD_ROOT from $(SYMROOT) to match xcodebuild, with an oracle fixture capturing the real build settings for the custom-SYMROOT case.

The bundled resolver hard-coded BUILD_DIR/BUILD_ROOT to the DerivedData
products path, so a project that relocates its products with a custom
SYMROOT (e.g. `SYMROOT = $(SRCROOT)/../build/products`) launched against
the wrong path and failed with "App path does not exist". Derive both
from $(SYMROOT) so TARGET_BUILD_DIR follows the override, matching
xcodebuild, and add an oracle fixture pinning the real build settings for
the custom-SYMROOT case (#292).
@hyzyla hyzyla force-pushed the issue292-custom-symroot branch from c00c7c7 to df42677 Compare June 19, 2026 20:03
@hyzyla hyzyla merged commit e38dfea into main Jun 19, 2026
6 checks passed
@hyzyla hyzyla deleted the issue292-custom-symroot branch June 19, 2026 20:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Launch fails after successful build when project uses custom SYMROOT

1 participant