Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support project_dir_path in file_ref.real_path #890

Open
WeijunDeng opened this issue Sep 8, 2022 · 0 comments
Open

support project_dir_path in file_ref.real_path #890

WeijunDeng opened this issue Sep 8, 2022 · 0 comments

Comments

@WeijunDeng
Copy link

WeijunDeng commented Sep 8, 2022

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

No branches or pull requests

1 participant