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

remove_dependency(target) method in PBXNativeTarget

krishnaagarwal1994 opened this issue · comments

My PBXNativeTarget has some dependencies which are not being used in that target, so I just need to remove them via Xcodeproj. After digging into the code I see that there is a way to add target dependency on the target by using

my_target.add_dependency(custom_target)
But i don't see any method like my_target.remove_dependency(custom_target)

Is there a way I can remove a given dependency from that particular target and not from the whole project because there might be other targets that might be consuming the above custom_target.

Thank You.

hm if there is no such API we can possibly add it.

Removing is unfortunately not well supported.
I guess the use case for the users is unfortunately only the one time creation of projects.