Thursday, 15 March 2012

objective c - iOS enabling custom logger in release mode -



objective c - iOS enabling custom logger in release mode -

in recent application, have been asked enable debug logging when releasing builds testers can send log when testing application. have created custom logger depends on #if debug macro enable or disable custom logging. works fine on debug mode. when build new release (with bamboo) testers not see custom log anymore. how can enable custom logging in release mode (via gcc_preprocessor_macros)? should rely on other preprocessor macros , ignore debug directive ?

if in release mode, release defined. if in debug mode, debug defined. if want custom logging available in release mode, shouldn't utilize debug condition.

if goal not send release build testers, send "looks release" build testers, suggest duplicating release configuration , defining pretend_release in it. see your project -> info tab -> configurations.

ios objective-c debugging logging release

No comments:

Post a Comment