GrahamDennis / GDCoreDataConcurrencyDebugging

GDCoreDataConcurrencyDebugging helps you find cases where NSManagedObject's are being called on the wrong thread or dispatch queue.
MIT License
170 stars 23 forks source link

Disable debugging in Production version #10

Closed pidgejaya closed 10 years ago

pidgejaya commented 10 years ago

Hi,

This library is very useful to debug the core data concurrency. But my concern is, how to disable this debugging in production(Adhoc or Distribution) version. Should i want to remove the library when the app go to production?

Is there any option to disable this library when the app run in production mode?

GrahamDennis commented 10 years ago

Ideally CocoaPods would provide a way to do this. Unfortunately I can't see a way to make it do what you want. So the solution I came up with was to disable GDCoreDataConcurrencyDebugging if the NDEBUG macro is defined, which should be defined for AdHoc or Distribution releases.

pidgejaya commented 10 years ago

@GrahamDennis Thanks.