Skip to content
This repository was archived by the owner on Feb 26, 2026. It is now read-only.

fix: mapping resource build phase with bundle targets#123

Merged
fortmarek merged 1 commit intomainfrom
fix/resource-bundle-target
Feb 19, 2025
Merged

fix: mapping resource build phase with bundle targets#123
fortmarek merged 1 commit intomainfrom
fix/resource-bundle-target

Conversation

@fortmarek
Copy link
Member

This PR is very similar to #110 but for resources. In a resources build phase, we can reference a target bundle that's in build products directory. In that case, instead of trying to resolve a full path, we should return either .target or .project dependency.

Comment on lines -337 to -338
/// Reads and parses a plist file into a `[String: Plist.Value]` dictionary.
private func readPlistAsDictionary(
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

for some reason, when mapping a generated Tuist.xcworkspace in tuist/tuist, this would always throw with the same error as we've seen in the past: tuist/tuist#7018

Since we don't strictly need the plist dictionary need, I decided to, at least for now, return a plain path reference instead of parsing the plist.

@fortmarek
Copy link
Member Author

I'm more than happy to apply any comments in a follow-up PR, but since we want this for today's Tuist release, I'll go ahead and merge this.

@fortmarek fortmarek merged commit 61873a6 into main Feb 19, 2025
7 checks passed
@fortmarek fortmarek deleted the fix/resource-bundle-target branch February 19, 2025 10:05
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant