CocoaPods / CocoaPods/Xcodeproj

support project_dir_path in file_ref.real_path

Open
#890 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Ruby
Stars
2.4k
Forks
488
PR merge metrics
No merged PRs in 30d

Description

https://github.com/CocoaPods/Xcodeproj/blob/29cd0821d47f864abbd1ca80f23ff2aded0adfed/lib/xcodeproj/project/object/helpers/groupable_helper.rb#L156

```
if ref.source_tree == "SOURCE_ROOT"
# fix bugs in https://github.com/CocoaPods/Xcodeproj/blob/29cd0821d47f864abbd1ca80f23ff2aded0adfed/lib/xcodeproj/project/object/helpers/groupable_helper.rb#L156
# support CMake generated projects with project_dir_path
file_path = (ref.project.project_dir + ref.project.root_object.project_dir_path + ref.path).to_s
else
file_path = ref.real_path.to_s
end
```

Contributor guide

No contributing guide indexed for this repository

Research direction

Start at lib/xcodeproj/project/object/helpers/groupable_helper.rb near line 156 and inspect how file_ref.real_path handles SOURCE_ROOT. Compare the proposed project_dir_path handling with the existing path resolution, using a CMake-generated project as the target case. Done means SOURCE_ROOT file paths resolve correctly when project_dir_path is set.

Written by the indexing model from the issue text.

Assessment

Tech stack
cmake, ruby
Domain
build-system
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.