Commit a75a2e85 authored by Dimitris Koutsogiorgas's avatar Dimitris Koutsogiorgas Committed by GitHub

Merge pull request #7013 from justinseanmartin/jmartin/codesign-xctest-frameworks

Perform code signing on xctest bundles in the Pods project
parents 6309df9a 53a078b6
...@@ -26,6 +26,10 @@ To install release candidates run `[sudo] gem install cocoapods --pre` ...@@ -26,6 +26,10 @@ To install release candidates run `[sudo] gem install cocoapods --pre`
##### Bug Fixes ##### Bug Fixes
* Perform code signing on xctest bundles in the Pods project generated by a test spec
[Justin Martin](https://github.com/justinseanmartin)
[#7013](https://github.com/CocoaPods/CocoaPods/pull/7013)
* Wrap platform warning message with quotes * Wrap platform warning message with quotes
[Dimitris Koutsogiorgas](https://github.com/dnkoutso) [Dimitris Koutsogiorgas](https://github.com/dnkoutso)
[#6968](https://github.com/CocoaPods/CocoaPods/pull/6968) [#6968](https://github.com/CocoaPods/CocoaPods/pull/6968)
......
...@@ -199,6 +199,8 @@ module Pod ...@@ -199,6 +199,8 @@ module Pod
# requires frameworks. For tests we always use the test target name as the product name # requires frameworks. For tests we always use the test target name as the product name
# irrelevant to whether we use frameworks or not. # irrelevant to whether we use frameworks or not.
configuration.build_settings['PRODUCT_NAME'] = name configuration.build_settings['PRODUCT_NAME'] = name
# We need to codesign the contents of xctest bundles for Xcode to allow them to be launchable
configuration.build_settings['CODE_SIGNING_REQUIRED'] = 'YES'
end end
# Test native targets also need frameworks and resources to be copied over to their xctest bundle. # Test native targets also need frameworks and resources to be copied over to their xctest bundle.
......
...@@ -190,6 +190,7 @@ module Pod ...@@ -190,6 +190,7 @@ module Pod
native_test_target.product_reference.name.should == 'CoconutLib-Unit-Tests' native_test_target.product_reference.name.should == 'CoconutLib-Unit-Tests'
native_test_target.build_configurations.each do |bc| native_test_target.build_configurations.each do |bc|
bc.build_settings['PRODUCT_NAME'].should == 'CoconutLib-Unit-Tests' bc.build_settings['PRODUCT_NAME'].should == 'CoconutLib-Unit-Tests'
bc.build_settings['CODE_SIGNING_REQUIRED'].should == 'YES'
end end
native_test_target.symbol_type.should == :unit_test_bundle native_test_target.symbol_type.should == :unit_test_bundle
@coconut_pod_target.test_native_targets.count.should == 1 @coconut_pod_target.test_native_targets.count.should == 1
......
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