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
Always embed and link frameworks for macOS #82
Always embed and link frameworks for macOS #82
Conversation
This would also embed carthage frameworks in framework targets. Is that ok? |
Ohh I'll fix it. |
Fixed in 99e5113 🙏 |
What happens to those frameworks that have carthage dependencies though. They have to be embedded somewhere right? Should this be moved down to where the It would be a good to have create a new macOS target in the TestProject fixture to test that this stuff works |
No, because user can just add all dependencies flattened in dependencies:
- target: LGTMKit_macOS
- carthage: APIKit // <- depends on Result
- carthage: Result |
99e5113
to
d1ec3f2
Compare
I don't mean embed all carthage frameworks, just looking through the ones that the app target is dependendant one, like the generated script phase does. This means someone can say that a framework has a carthage dependency, without having to also add it to all targets that have that framework as a dependency |
d1ec3f2
to
d03fb77
Compare
Can this be moved down to here so it embeds all the relevant carthage frameworks. https://github.com/yonaskolb/XcodeGen/blob/master/Sources/XcodeGenKit/PBXProjGenerator.swift#L392 This is so the target can embed all the carthage dependencies that are linked in all of that target's target dependencies. This is to support the use case where carthage dependencies are defined on the frameworks that need it and not on the application targets. That whole carthage code will need to be moved up before |
3e2c622
to
d03fb77
Compare
Can we do that in separated PR? |
What was the issue? |
Replaces #79.
XcodeGen currently don't support embedding Carthage frameworks.
SeeAlso: https://github.com/Carthage/Carthage#if-youre-building-for-os-x
project.yml
Before
After