Skip to content

Commit

Permalink
Merge pull request #74 from ericcbm/patch-1
Browse files Browse the repository at this point in the history
Update CrashlyticsTutorial.md
  • Loading branch information
samhill303 authored Jan 14, 2025
2 parents 8d49633 + f37dfff commit 8141216
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions website/docs/CrashlyticsTutorial.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ Undefined symbols for architecture x86_64:
_co_touchlab_crashkios_crashlytics_FIRCLSExceptionRecordNSException_wrapper0 in result.o
ld: symbol(s) not found for architecture x86_64
```
This is because on iOS only the definitions for Crashlytics are added when comiling the Kotlin code and building the framework. The binary (the actual Crashlytics library) isn't added until later when you build the iOS app. When building a dynamic framework, the Kotlin compile expects to be able to resolve everything, so you'll see the above error because Crashlytics isn't there yet.
This is because on iOS only the definitions for Crashlytics are added when compiling the Kotlin code and building the framework. The binary (the actual Crashlytics library) isn't added until later when you build the iOS app. When building a dynamic framework, the Kotlin compile expects to be able to resolve everything, so you'll see the above error because Crashlytics isn't there yet.

To workaround this, we need to tell the compiler that these symbols are find and will be there later. Doing it manually is a bit messy so you can just add our gradle plugin to handle it
```kotlin
Expand Down Expand Up @@ -108,4 +108,4 @@ CrashKiOS-crashlytics also provides shared code wrappers for sending logs and c
```kotlin
CrashlyticsKotlin.logMessage("Some message")
CrashlyticsKotlin.setCustomValue("someKey", "someValue")
```
```

0 comments on commit 8141216

Please sign in to comment.