Commit a2f4b5f8 authored by Fabio Pelosin's avatar Fabio Pelosin

[PodTargetInstaller] Hot fix for resources bundles

parent 50925405
......@@ -42,7 +42,6 @@ module Pod
source_files = file_accessor.source_files
file_refs = source_files.map { |sf| project.reference_for_path(sf) }
target.add_file_references(file_refs, flags)
end
end
end
......@@ -64,7 +63,6 @@ module Pod
next
end
file_references = paths.map { |sf| project.reference_for_path(sf) }
group = project.group_for_spec(file_accessor.spec.name, :products)
bundle_target = project.new_resources_bundle(bundle_name, file_accessor.spec_consumer.platform_name)
bundle_target.add_resources(file_references)
......@@ -87,12 +85,7 @@ module Pod
public_gen = Generator::XCConfig::PublicPodXCConfig.new(library)
UI.message "- Generating public xcconfig file at #{UI.path(path)}" do
public_gen.save_as(path)
#
# TODO
add_file_to_support_group(path)
# relative_path = path.relative_path_from(sandbox.root)
# group = project.group_for_spec(library.root_spec.name, :support_files)
# group.new_file(relative_path)
end
path = library.xcconfig_private_path
......
......@@ -47,7 +47,7 @@ module Pod
it 'adds the target for the static library to the project' do
@installer.install!
@project.targets.count.should == 1
@project.targets.first.name.should == 'Pods-BananaLib'
@project.targets.first.name.should == 'Pods-BananaLib'
end
it "sets VALIDATE_PRODUCT to YES for the Release configuration for iOS targets" do
......@@ -102,8 +102,10 @@ module Pod
#--------------------------------------#
xit 'adds the resource bundle targets' do
it 'adds the resource bundle targets' do
@pod_target.file_accessors.first.stubs(:resource_bundles).returns({'banana_bundle' => []})
@installer.install!
@project.targets.map(&:name).should == ["Pods-BananaLib", "banana_bundle"]
end
xit 'adds the build configurations to the resources bundle targets' do
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment