New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Correctly set runtime search paths for OSX unit test bundles #6435
Conversation
@@ -217,8 +217,9 @@ def generate_ld_runpath_search_paths | |||
ld_runpath_search_paths = ['$(inherited)'] | |||
if target.platform.symbolic_name == :osx | |||
ld_runpath_search_paths << "'@executable_path/../Frameworks'" | |||
symbol_type = target.user_targets.map(&:symbol_type).uniq.first |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it possible that an aggregate_target
integrates more than one user_target
? If so, what is the scenario I can use to test this out and what should the expected behavior be?
Will need to bump integration specs. |
c05e249
to
0d3a91d
Compare
/cc @dantoml @benasher44 |
My only thought is maybe abstract targets can have multiple user targets? I haven't verified that though. |
I think in that case, you'd just skip this for abstract targets, for which I think there is a flag/method you can call to ask that. |
Will update. |
@benasher44 I simulated this scenario but abstract_target 'Abstract1' do
abstract_target 'Abstract2' do
target 'SampleApp Mac Tests' do
platform :osx, '10.10'
pod 'OCMock', '~> 3.1.2'
end
end
end |
I believe target itself would be abstract. The |
Ah, looks like still that the Probably something higher up the call chain does not generate xcconfigs for abstract targets, which makes sense I think. if I print out the |
Yep that should all be handled in analyzer/variants. This change LGTM. |
This change looks good to me. Just waiting on merge conflict resolution and green CI |
@benasher44 the corresponding change for integration specs is here CocoaPods/cocoapods-integration-specs#95 |
@dnkoutso looks like there is one failure left but I'm not sure why. Maybe needs a rebase? |
I just did lets see :) |
Can I merge? :) |
Whoop, hadn't seen the ci pass, let ship it |
No description provided.