Commit 1e3e9ae1 authored by Danielle Tomlinson's avatar Danielle Tomlinson Committed by GitHub

Merge pull request #6029 from IngmarStein/master

Use host target for frameworks of XPC services
parents 16b0ceca a0e84a08
...@@ -8,7 +8,9 @@ To install release candidates run `[sudo] gem install cocoapods --pre` ...@@ -8,7 +8,9 @@ To install release candidates run `[sudo] gem install cocoapods --pre`
##### Enhancements ##### Enhancements
* None. * Use host target for frameworks of XPC services.
[Ingmar Stein](https://github.com/IngmarStein)
[#6029](https://github.com/CocoaPods/CocoaPods/pull/6029)
##### Bug Fixes ##### Bug Fixes
......
...@@ -24,7 +24,7 @@ GIT ...@@ -24,7 +24,7 @@ GIT
GIT GIT
remote: https://github.com/CocoaPods/Xcodeproj.git remote: https://github.com/CocoaPods/Xcodeproj.git
revision: a517d2371f5156e6b4db0948418189a7066d8607 revision: 8d21748dd4f47e9272501d938398e9d50c49fefe
branch: master branch: master
specs: specs:
xcodeproj (1.3.2) xcodeproj (1.3.2)
......
...@@ -9,7 +9,7 @@ module Pod ...@@ -9,7 +9,7 @@ module Pod
# Product types where the product's frameworks must be embedded in a host target # Product types where the product's frameworks must be embedded in a host target
# #
EMBED_FRAMEWORKS_IN_HOST_TARGET_TYPES = [:app_extension, :framework, :messages_extension, :watch_extension].freeze EMBED_FRAMEWORKS_IN_HOST_TARGET_TYPES = [:app_extension, :framework, :messages_extension, :watch_extension, :xpc_service].freeze
# Initialize a new instance # Initialize a new instance
# #
......
...@@ -224,6 +224,11 @@ module Pod ...@@ -224,6 +224,11 @@ module Pod
@target.requires_host_target?.should == true @target.requires_host_target?.should == true
end end
it 'requires a host target for XPC service targets' do
@target.user_targets.first.stubs(:symbol_type).returns(:xpc_service)
@target.requires_host_target?.should == true
end
it 'does not require a host target for watch 2 extension targets' do it 'does not require a host target for watch 2 extension targets' do
@target.user_targets.first.stubs(:symbol_type).returns(:watch2_extension) @target.user_targets.first.stubs(:symbol_type).returns(:watch2_extension)
@target.requires_host_target?.should == false @target.requires_host_target?.should == false
......
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