Skip to content

Commit e12487e

Browse files
committed
Add troubleshooting item for Flutter
When using `flutter build ios-framework` and using the resulting artifacts, a dependency is missing. Add a Troubleshooting item to address it. refs: RUM-7170
1 parent f1e8373 commit e12487e

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

content/en/real_user_monitoring/mobile_and_tv_monitoring/flutter/troubleshooting.md

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,19 @@ LoadError - dlsym(0x7fbbeb6837d0, Init_ffi_c): symbol not found - /Library/Ruby/
6262

6363
Follow the instructions in the [Flutter documentation][2] for working with Flutter on Apple Silicon.
6464

65+
## Undefined symbol (iOS)
66+
67+
If you are using Flutter's `build ios-framework` command, it is possible you will get errors similar to the following:
68+
69+
```
70+
Undefined symbol: _OBJC_CLASS_$_PLCrashReport
71+
Undefined symbol: _OBJC_CLASS_$_PLCrashReportBinaryImageInfo
72+
Undefined symbol: _OBJC_CLASS_$_PLCrashReportStackFrameInfo
73+
...
74+
```
75+
76+
This is because the `build ios-framework` command is not properly including PLCrashReporter, which the Datadog Flutter SDK depends on. To solve this issue, we recommend you include the PLCrashReporter dependency manually. The framework and instructions for including it are available on its [GitHub page][8]
77+
6578
## Set sdkVerbosity
6679

6780
If you're able to run your app, but you are not seeing the data you expect on the Datadog site, try adding the following to your code before calling `DatadogSdk.initialize`:
@@ -112,4 +125,5 @@ A warning appears when deobfuscation fails for a stack trace. If the stack trace
112125
[4]: https://pub.dev/packages/http
113126
[5]: https://pub.dev/packages/dio
114127
[6]: https://app.datadoghq.com/source-code/setup/rum
115-
[7]: /real_user_monitoring/guide/debug-symbols
128+
[7]: /real_user_monitoring/guide/debug-symbols
129+
[8]: https://github.com/microsoft/plcrashreporter

0 commit comments

Comments
 (0)