CocoaPods / CocoaPods/Xcodeproj

A bug occurred on the instance method "set_path" of PBXFileReference

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

I used the instance method `"set_path"` of PBXFileReference according to [API reference](https://www.rubydoc.info/gems/xcodeproj/Xcodeproj/Project/Object/PBXFileReference#set_path-instance_method):

image

the `testing code` shown as belows:

image

it did change the path, but at the same time, **the `"name"` attribute was also modified** when project was opened in Xcode:

image
image

**Is there an instance method of PBXFileReference probably called `"set_name"` in order to change back the file name?**
the expected name is: `MTTTest.podspec`, not `MTTTest/MTTTest.podspec`, although the `path` attribute is satisfied after calling `"set_path"` method.

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.