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

support Debug configurations like cocoapods? #2370

Closed
CocoaDebug opened this issue Mar 11, 2018 · 3 comments
Closed

support Debug configurations like cocoapods? #2370

CocoaDebug opened this issue Mar 11, 2018 · 3 comments

Comments

@CocoaDebug
Copy link

@CocoaDebug CocoaDebug commented Mar 11, 2018

pod 'xxx', :configurations => ['Debug'] #cocoapods

Can Carthage support like this?
I just want to import the framework only in DEBUG, not RELEASE.

@mdiep
Copy link
Member

@mdiep mdiep commented Mar 11, 2018

carthage has a --configuration flag that lets you build in Debug mode. carthage bootstrap --configuration Debug.

@tmspzz
Copy link
Member

@tmspzz tmspzz commented Mar 11, 2018

You can optionally link the framework in your link phase and surround use with #if DEBUG

@CocoaDebug
Copy link
Author

@CocoaDebug CocoaDebug commented Mar 12, 2018

Thanks

@CocoaDebug CocoaDebug closed this Mar 12, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants