Skip to content

Conversation

@aaronsky
Copy link
Contributor

Fixes #3130

@aaronsky
Copy link
Contributor Author

closing in favor of #3185

@aaronsky aaronsky closed this May 20, 2025
@aaronsky aaronsky deleted the aaronsky/3130-support-storekit-configuration-run-action branch November 10, 2025 01:42
brentleyjones pushed a commit that referenced this pull request Nov 19, 2025
Fixes #3130.

Redoes #3182 (and potentially fixes unresolved comments on #3185). 

The StoreKit Testing configuration file has a peculiar requirement that
has no precedent in the rules. The file's path in the scheme must be
relative to the `xcshareddata/xcschemes` directory the scheme is under,
not the scheme itself (so one level shallower than you'd expect). Making
the path relative to the project fails, and making it absolute crashes
Xcode.

A prior iteration of this PR attempted to relativize the path in
Starlark, but exposed some safety shortcomings. In knowing the absolute
path of both the scheme directory and the configuration file, doing this
work in the generator gives us slightly improved safety guarantees at
the cost of performance. To this author, there is too much ambiguity
between the paths of either location without this information, since the
files can potentially exist in independent file trees under a workspace.

---------

Signed-off-by: Aaron Sky <[email protected]>
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.

Feature Request: Support StoreKit Configuration files in generated xcschemes.

1 participant