Skip to content
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

Feature Request: Skip Dependencies #2312

Closed
wjk opened this issue Jul 16, 2014 · 1 comment
Closed

Feature Request: Skip Dependencies #2312

wjk opened this issue Jul 16, 2014 · 1 comment
Labels
t3:discussion These are issues that can be non-issues, and encompass best practices, or plans for the future.

Comments

@wjk
Copy link

wjk commented Jul 16, 2014

Hi, I had an idea on how to ease the transition to Clang modules and dynamic frameworks (viz #2272). I would much rather submit a PR, except I don’t quite know how to go about making this change.

The technique is this: Add a new option to the pod method of the Podfile DSL called skip_dependencies. If it is present and has a value of true, CocoaPods will not link the dependencies of the named pod into this target. It is the up to the developer to make sure that all dependencies are provided.

This addition, combined with a “one framework per Pod” approach to project design and copying the Pod’s public headers into the framework’s Headers directory, makes it possible to move pods from being linked into the main binary and creates a situation wherein each binary links to the frameworks containing the Pods that concern it. (For example, an OS X or iOS extension would not need the Pods containing custom GUI controls, so it wouldn’t link against those frameworks.) Thanks to Xcode 6’s “Defines Module” build setting, the Pod sources can then be @imported for free. (If you’re running Xcode 5, you can create a module map file by hand — it isn’t too hard.)

What do you think?

@segiddins segiddins added the t3:discussion These are issues that can be non-issues, and encompass best practices, or plans for the future. label Sep 8, 2014
@fabiopelosin
Copy link
Member

Moving to CocoaPods/Core#150

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
t3:discussion These are issues that can be non-issues, and encompass best practices, or plans for the future.
Projects
None yet
Development

No branches or pull requests

3 participants