Skip to content

Commit

Permalink
Add the library to the Frameworks group when configuring the app proj…
Browse files Browse the repository at this point in the history
…ect.
  • Loading branch information
alloy committed Nov 6, 2011
1 parent 9ea008e commit d9306b4
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 2 additions & 0 deletions bin/pod
@@ -1,6 +1,8 @@
#!/usr/bin/env macruby

if $0 == __FILE__
require 'rubygems'
gem 'activesupport', '~> 3.1.1'
$:.unshift File.expand_path('../../lib', __FILE__)
end

Expand Down
1 change: 1 addition & 0 deletions lib/cocoapods/installer.rb
Expand Up @@ -214,6 +214,7 @@ def configure_project(projpath)
end

libfile = app_project.files.new_static_library('Pods')
libfile.group = app_project.main_group.groups.find { |g| g.name == 'Frameworks' }
app_project.objects.select_by_class(Xcode::Project::PBXFrameworksBuildPhase).each do |build_phase|
build_phase.files << libfile.buildFiles.new
end
Expand Down
6 changes: 3 additions & 3 deletions spec/unit/podfile_spec.rb
Expand Up @@ -18,9 +18,9 @@
podfile.dependency_by_name('SSZipArchive').should == Pod::Dependency.new('SSZipArchive', '>= 0.1')
end

it "specifies if BridgeSupport metadata should be generated" do
podfile = Pod::Podfile.new { generate_bridge_support! }
podfile.generate_bridge_support?.should == true
it "specifies that BridgeSupport metadata should be generated" do
Pod::Podfile.new {}.should.not.generate_bridge_support
Pod::Podfile.new { generate_bridge_support! }.should.generate_bridge_support
end

describe "concerning targets (dependency groups)" do
Expand Down

0 comments on commit d9306b4

Please sign in to comment.