Skip to content

Fix test resources in Xcode when running in symlinked directory#185

Merged
marcprux merged 1 commit intoskiptools:mainfrom
dfabulich:fix-xcode-test-resources
Feb 19, 2026
Merged

Fix test resources in Xcode when running in symlinked directory#185
marcprux merged 1 commit intoskiptools:mainfrom
dfabulich:fix-xcode-test-resources

Conversation

@dfabulich
Copy link
Contributor

@dfabulich dfabulich commented Feb 19, 2026

Fixes skiptools/skip#622

/tmp on macOS is a symlink to /private/tmp. We need to canonicalize both paths with (path as NSString).standardizingPath before we call .hasPrefix on them.

Skip Pull Request Checklist:

  • REQUIRED: I have signed the Contributor Agreement
  • REQUIRED: I have tested my change locally with swift test
  • OPTIONAL: I have tested my change on an iOS simulator or device
  • OPTIONAL: I have tested my change on an Android emulator or device

  • AI was used to generate or assist with generating this PR. Please specify below how you used AI to help you, and what steps you have taken to manually verify the changes.

I used Cursor to automatically add logging statements. It found the path mismatch and fixed it, and I reviewed the result (all six lines).


`/tmp` on macOS is a symlink to `/private/tmp`. We need to canonicalize both paths with `(path as NSString).standardizingPath` before we call `.hasPrefix` on them.
@cla-bot cla-bot bot added the cla-signed label Feb 19, 2026
@marcprux
Copy link
Member

Looks good, thanks!

@marcprux marcprux merged commit 683a957 into skiptools:main Feb 19, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

skip init Lite app fails tests in Xcode when run from /tmp

2 participants

Comments