lib/xcodeproj_utils.rb in xcodeproj_utils-0.1.0 vs lib/xcodeproj_utils.rb in xcodeproj_utils-0.1.1
- old
+ new
@@ -3,9 +3,10 @@
module XcodeprojUtils
class Project
def initialize(proj_name, target_name)
@proj = Xcodeproj::Project::open(proj_name)
+ @target = @proj.targets.select {|target| target.name == target_name}
for t in @proj.targets
next if t.name != target_name
@target = t
break
end