Skip to content

Latest commit

 

History

History
49 lines (35 loc) · 1.63 KB

TROUBLESHOOTING.md

File metadata and controls

49 lines (35 loc) · 1.63 KB

TROUBLESHOOTING

No data is being sent to Datadog

See the dedicated troubleshooting guide.

Undefined symbols: Swift

Original issue: DataDog#41

If you have the following error message:

Undefined symbols for architecture x86_64:
  "static Foundation.JSONEncoder.OutputFormatting.withoutEscapingSlashes.getter : Foundation.JSONEncoder.OutputFormatting", referenced from:
      static (extension in Datadog):Foundation.JSONEncoder.default() -> Foundation.JSONEncoder in libDatadogSDK.a(JSONEncoder.o)
...

open Xcode and go to Build Settings of your project (not your app target) then make sure Library Search Paths is the following:

LIBRARY_SEARCH_PATHS = (
  "\"$(TOOLCHAIN_DIR)/usr/lib/swift/$(PLATFORM_NAME)\"",
  "\"/usr/lib/swift\"",
  "\"$(inherited)\"",
);

Undefined symbol _RCTModule

I had this issue when I run the project from Xcode. It might be related to this change in react-native v0.63 changelog

We made the change below to fix it:

// DdSdk.m
// instead of
#import <React/RCTBridgeModule.h>
// maybe that:
@import React // or @import React-Core

Infinite loop-like error messages

Sometimes, almost randomly, my RN project gives error messages non-stop. CPU usage goes up to %+100 and you'll quickly notice a problem with your laptop fan goes crazy.

This is the issue: facebook/react-native#28801

I tried some of the solutions, none worked. I solved the issue by creating a new RN project.