Skip to content

Commit 1ae1535

Browse files
Unity: Added troubleshooting for ReflectionTypeLoadException (#4664)
* added editor issues to troubleshooting * Update src/platforms/unity/troubleshooting.mdx Co-authored-by: Isabel <76437239+imatwawana@users.noreply.github.com> Co-authored-by: Isabel <76437239+imatwawana@users.noreply.github.com>
1 parent d97c7cd commit 1ae1535

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/platforms/unity/troubleshooting.mdx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,12 @@ Unity has resolved this issue on newer releases. Learn more by checking the [Uni
2929
This issue was resolved in the release 0.7.0 of the Sentry SDK for Unity.
3030
If you're still encountering this issue on a version later than 0.7.0, please let us know [with an issue report](https://github.com/getsentry/sentry-unity/issues/new?assignees=&labels=&template=BUG_REPORT.md).
3131

32+
## Editor Issues
33+
34+
### Sentry.Unity.Editor.iOS - System.Reflection.ReflectionTypeLoadException
35+
36+
The `Sentry.Unity.Editor.iOS.dll` is responsible for adding native support to your iOS builds. For that, it relies on editor functionality that Unity provides in the form of their iOS module. If you don't have the iOS module installed and, for example, `Assembly.GetTypes()` gets called, this leads to a `ReflectionTypeLoadException`. To resolve this, you can install the iOS module using the Unity Hub or, if you don't intend to build for iOS, you can [embed](https://docs.unity3d.com/Manual/upm-embed.html) the Sentry SDK package and safely remove the `Sentry.Unity.Editor.iOS.dll`.
37+
3238
## Build Issues
3339

3440
### Failed to locate the Sentry package

0 commit comments

Comments
 (0)