You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 26, 2026. It is now read-only.
Dependency and project paths currently include the .xcodeproj component, such as some-path/project/Project.xcodeproj. However, in tuist/tuist, project paths usually reference to some-path/project without the Project.xcodeproj. This PR aligns the mapper with this convention.
When the path to .xcodeproj is needed, we can still use the xcodeProjPath of Project.
Dependency and project paths currently include the .xcodeproj component, such as some-path/project/Project.xcodeproj. However, in tuist/tuist, project paths usually reference to some-path/project without the Project.xcodeproj. This PR aligns the mapper with this convention.
I wonder how explicit we should be in the API regarding the graph being for generation vs loaded from a file-system Xcode project. Will we end up with assumptions at upper levels like this one, where it's a bit ambiguous what the path refers to?
I wonder how explicit we should be in the API regarding the graph being for generation vs loaded from a file-system Xcode project. Will we end up with assumptions at upper levels like this one, where it's a bit ambiguous what the path refers to?
I think the structure of the two should be aligned. At some point, we can add acceptance tests that ensure that the graph loaded from Project.swift is equal to the graph that's loaded after tuist generate using the XcodeProjMapper.
Unfortunately, in types like AbsolutePath there is no statically-typed way to ensure paths for example don't include .xcodeproj. We could also add some runtime assertions for things like this.
In other words, I agree with you this is an issue, but once the XcodeProjMapper is more stable, I don't think we'll run into these things too often.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
None yet
2 participants
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Dependency and project paths currently include the
.xcodeprojcomponent, such assome-path/project/Project.xcodeproj. However, intuist/tuist, project paths usually reference tosome-path/projectwithout theProject.xcodeproj. This PR aligns the mapper with this convention.When the path to
.xcodeprojis needed, we can still use thexcodeProjPathofProject.cc @ajkolean