The only way to debug Firebase is to pass -FIRAnalyticsDebugEnabled
on arguments passed on launch.
It's working in debug mode with my iOS device connected but I would like to deploy an AdHoc build so QA can test it without Xcode.
But it seems arguments aren't passed at launch when Xcode archives a build.
Any solution? Thanks.
In addition to proposition above:
FIREBASE_DEBUG_ENABLED = YES
orNO
(ie:YES
everywhere exceptRelease
)FirebaseDebugEnabled
, and string value:$(FIREBASE_DEBUG_ENABLED)
AppDelegate.m
, indidFinishLaunchingWithOptions
method, add the following statement:Objective-C
Swift 4.2
You can build your app choosing in the target scheme, in
Run
section, the build config you want to use (default:Debug
), and so, try to run your app inAdhoc
andRelease
modes.I found hack solution for this, try it in your application:didFinishLaunchingWithOptions: or override AppDelegate’s init:
Objective-C:
Swift:
Just some additions to the most upped answer: I would do something like this
to keep it to debug. This takes that you set up
-DDEBUG
in "Other Swift Flags" in Build Settings. (you need to set this for the Debug value, of course.And then remember to put the code snippet BEFORE you initialize Firebase :-)
Currently there is no way to turn on Debug mode in AdHoc build or Release build and it is intentional. The DebugView is only for development. Once you build the app, you can only check the real traffic, that is 2-4 hours after running.