Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Removing PonyDebugger from Release builds #17

Closed
barumrho opened this Issue Sep 13, 2012 · 3 comments

Comments

Projects
None yet
3 participants

This isn't really a issue, but more of a question.

I am wondering what the best practice is for getting a release build that isn't linked with PonyDebugger. Ideally, I would like to keep the release build the same as before integrating with PonyDebugger. Is there a good way to do this?

Collaborator

wlue commented Sep 13, 2012

Take a look at the sample PDTwitterTest application. Basically, add -lSocketRocket and -lPonyDebugger to your Other Linker Flags for Debug builds, and get rid of them in your main Linked Frameworks and Libraries list. Then you will want to surround any PonyDebugger related code (including the #include <PonyDebugger/PonyDebugger.h) in #if DEBUG statements.

Thanks!

@barumrho barumrho closed this Sep 13, 2012

glyuck commented Oct 29, 2012

If you are using continious integration server for release builds (jenkins in my case), good option would be using cocoapods and add condition to your Podfile, so PonyDebugger isn't installed on build server. For examle:

if !ENV['JENKINS_URL']:
  pod 'PonyDebugger', '0.0.1'
end

And of course you still need to surround all PonyDebugger related code with #if DEBUG ... #endif statements.
Then just check in jenkins build log that ponydebugger isn't installed during pod install.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment