Skip to content

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 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.

2 participants