Permalink
Browse files

Add the library to the Frameworks group when configuring the app proj…

…ect.
  • Loading branch information...
1 parent 9ea008e commit d9306b4c87308f819529ea2bc899511d173005e5 @alloy committed Nov 6, 2011
Showing with 6 additions and 3 deletions.
  1. +2 −0 bin/pod
  2. +1 −0 lib/cocoapods/installer.rb
  3. +3 −3 spec/unit/podfile_spec.rb
View
@@ -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
@@ -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
@@ -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

0 comments on commit d9306b4

Please sign in to comment.