CocoaPods / CocoaPods/Xcodeproj

find_file_by_path doesn't take in account path relativity

Open
#310 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

When trying to find a file, find_file_by_path only matches the 'path' property with the file_ref under the group. If the path passed in the method is relative to the SOURCE_ROOT, and the path in the file_ref is relative to the group, it wouldn't find it.

Example:
I have two files: RoundView.h and RounView.m under the folder in the file system: myproject/classes/views/ .They are both in the group 'views' in the Xcode project, but the sourceTree are different:

RoundView.h path='classes/views/RoundView.h' sourceTree = SOURCE_ROOT
RoundView.m path='RoundView.m' sourceTree = ''

So I may know they are under 'classes/views/' but not how they where added to Xcode.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.