iOS | supress logs


1 comment

  • Patrik Spisak

    I disabled logs my way because not sure if there is API or not for this.

    In path:

    Pods/Target Support Files/RainbowSDK

    I have created file:


    Inside file I have add

    #ifdef __OBJC__

    #import <UIKit/UIKit.h>



    #if defined(__cplusplus)

    #define FOUNDATION_EXPORT extern "C"


    #define FOUNDATION_EXPORT extern




    #ifndef DEBUG

        #define NSLog(...)


    Inside Xcode, I have selected Pods, Targets: RainbowSDK -> Prefix Header Set To:

    Target Support Files/RainbowSDK/RainbowSDK-prefix.pch

    So if I run app as Release all NSLog are disabled. NSLogs should be disabled in production because they are causing performance issues.

    Comment actions Permalink

Please sign in to leave a comment.

Still can't find what you need?

  • Contact Us

    Do you have any question about Rainbow? Leave us a message to get more information.

  • Ask the Community

    Do you need help? Ask your questions to the Community and get answers from other Rainbow users.

    Post message