Open xeroxoid opened 2 years ago
This resolved the issue for me https://github.com/facebook/react-native/issues/34332#issuecomment-1203201035
@stratochief66 I am having same issue. but unfortunately above thread not solving my issue.
@stratochief66 I am having same issue. but unfortunately above thread not solving my issue.
Have you find a solution? Same Problem here
Anybody solved this yet?
Environment
Things I’ve done to figure out my issue
Upgrading version
0.70.1
Description
We use the following configuration in our
Podfile
:After the upgrade to
0.70.1
from0.68.2
all Flipper specific code was removed fromAppDelegate.mm
in favour of Flipper getting initialized via<React/RCTAppSetupUtils.h>
andRCTAppSetupUtils.mm
line 47 i.e.:We do use
react-native-config
to use different environments for Production, Development and, Staging.The weird thing is that if we do the initialization ourselves on
AppDelegate.mm
like below (i.e. with the same checks forDEBUG
andFB_SONARKIT_ENABLED
it works as expected.It seems like although
AppDelegate.mm
picks up theFB_SONARKIT_ENABLED
andDEBUG
variables,RCTAppSetupUtils.mm
does not, which is weird.What we also tried is:
FB_SONARKIT_ENABLED=1
inOTHER_SWIFT_FLAGS
/Other Swift FlagsFB_SONARKIT_ENABLED=1
inGCC_PREPROCESSOR_DEFINITIONS
/Preprocessor MacrosFB_SONARKIT_ENABLED=1
inSWIFT_ACTIVE_COMPILATION_CONDITIONS
/Active Compilation Conditionswith no success...
We event tried debugging
AppDelegate.mm
andRCTAppSetupUtils.mm
via XCode to figure out the value ofFB_SONARKIT_ENABLED
but in our understanding this value is evaluated at build/compile time and thus cannot be seen in the debugger.