CocoaPods / Xcodeproj

Create and modify Xcode projects from Ruby.

Home Page:http://rubygems.org/gems/xcodeproj

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

lgyhero opened this issue · comments

I used the instance method "set_path" of PBXFileReference according to API reference:

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.