lib/ib/project.rb in ib-0.3.1 vs lib/ib/project.rb in ib-0.3.2

- old
+ new

@@ -16,23 +16,24 @@ end end end def write - project = Xcodeproj::Project.new + ib_project = "ib.xcodeproj" + project = Xcodeproj::Project.new(ib_project) target = project.new_target(:static_library, 'ib', platform) resources = project.new_group("Resources") resources.path = resources_path support = project.new_group("Supporting Files") - support.path = "ib.xcodeproj" + support.path = ib_project pods = project.new_group("Pods") pods.path = pods_headers_path - IB::Generator.new.write(Motion::Project::App.config.files, "ib.xcodeproj") + IB::Generator.new.write(Motion::Project::App.config.files, ib_project) support.new_file "ib.xcodeproj/Stubs.h" file = support.new_file "ib.xcodeproj/Stubs.m" target.add_file_references([ file ]) @@ -56,8 +57,8 @@ %W{QuartzCore CoreGraphics CoreData}.each do |framework| project.add_system_framework framework, target end - project.save_as("ib.xcodeproj") + project.save(ib_project) end -end \ No newline at end of file +end