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
Explicitly set the PRODUCT_NAME to TARGET_NAME #2398
Conversation
Awesome! |
Absolutely — I've even removed the customised entries at the target levels on the tests. |
Awesome! |
Actually, one second. Using Am I missing something? |
It looks like it's an Xcode bug? Check the derived names of the framework targets — they're correctly getting their values from the xcconfigs, but only if the project has a PRODUCT_NAME set. This bears some deeper investigation. |
You should be able to use |
And then |
@neilpa this is more work/maintenance (modifying the setting in each test target, versus just the project), and I don't think it really changes the outcome. Happy to go with whatever, but I'd favour less maintenance. Maybe we need our own local xcconfig on top of those included in the submodule? |
I don't really care about the tests, can do whatever works and is easy there. However, I don't see how |
|
Ahh. I understand now. Lulz Xcode. |
Explicitly set the PRODUCT_NAME to TARGET_NAME
I've made a terrible mistake! This "feature" is fixed in Xcode 7.1, so now we end up with ReactiveCocoa-Mac.framework and a whole swag of problems. I'll submit a new PR to hardcore the name when I'm home later 😦 |
Oh yeah that explains what I was seeing today! |
🤘 hardcore the name |
Hardcode the framework name to fix issues arising from #2398
When used as a subproject, the
$PRODUCT_NAME
variable was not being inferred from the xcconfigs. Setting the project level product name works around the problem (the tests use$TARGET_NAME
and the frameworks all use$PROJECT_NAME
).I'm sure there's a problem here deeper than what I've investigated, but this PR fixes the symptoms reasonably cleanly.
Fixes #2395.