-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Improvements * Update * update * update * update * Apply suggestions from code review Co-authored-by: Liza Mock <liza.mock@sentry.io> * Update --------- Co-authored-by: Liza Mock <liza.mock@sentry.io>
- Loading branch information
Showing
3 changed files
with
59 additions
and
118 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
115 changes: 0 additions & 115 deletions
115
docs/platforms/kotlin-multiplatform/swift-package-manager.mdx
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,58 @@ | ||
--- | ||
title: Troubleshooting | ||
description: "Troubleshoot and resolve edge cases regarding known limitations and bundling." | ||
description: "Troubleshoot and resolve edge cases when using Sentry's Kotlin Multiplatform SDK." | ||
sidebar_order: 9000 | ||
--- | ||
|
||
If you need help solving issues with Sentry's Kotlin Multiplatform SDK, you can read the edge cases documented here. If you need additional help, you can [ask on GitHub](https://github.com/getsentry/sentry-kotlin-multiplatform/issues/new/choose). Customers on a paid plan may also contact support. | ||
This document covers common issues you may encounter when using the Sentry Kotlin Multiplatform SDK and provides steps to troubleshoot. | ||
|
||
If you need additional help, [ask on GitHub](https://github.com/getsentry/sentry-kotlin-multiplatform/issues/new/choose). Customers on a paid plan can also contact [support](https://help.sentry.io/). | ||
|
||
## "Missing API declaration" after App Store review | ||
|
||
Starting May 1, 2024, Apple requires all apps submitted to the App Store to provide a list of privacy-related APIs they use, including the reasons under which they use it. If you received an email from Apple with the message "ITMS-91053: Missing API declaration", your app doesn't fulfill the requirements. To solve this, follow our [Apple Privacy Manifest](/platforms/kotlin-multiplatform/data-management/apple-privacy-manifest) guide. | ||
|
||
## Tests Not Working | ||
|
||
If you configured the Sentry Kotlin Multiplatform SDK and tests are still failing with the following error: `ld: framework 'Sentry' not found` then follow these steps for the workaround: | ||
|
||
<Note> | ||
This example shows you how to fix the issue for the iOS simulator target, but the same approach can be used for other targets. | ||
</Note> | ||
|
||
**1. Download the Sentry xcframework** | ||
|
||
- Choose the Sentry Cocoa release based on the version specified in the [version compatibility table](/platforms/kotlin-multiplatform/#cocoa-sdk-version-compatibility-table) | ||
- Download the `Sentry.xcframework.zip` on [GitHub](https://github.com/getsentry/sentry-cocoa/releases), and unzip it. | ||
|
||
**2. Create a frameworks directory and insert `Sentry.framework`** | ||
|
||
Create a `/Frameworks` directory in the directory where the `test.kexe` resides and put the `Sentry.framework` in it. | ||
- The `Sentry.framework` can be found inside of the `ios-arm64_x86_64-simulator`. | ||
- The `test.kexe` will usually reside in `build/bin/iosSimulatorArm64/debugTest`. | ||
|
||
**3. Add linker options** | ||
|
||
Modify `shared/build.gradle.kts` to include linker options, as shown below: | ||
|
||
```kotlin {filename:shared/build.gradle.kts} | ||
listOf( | ||
iosX64(), | ||
iosArm64(), | ||
iosSimulatorArm64(), | ||
).forEach { | ||
it.binaries.framework { | ||
baseName = "shared" | ||
} | ||
it.compilations.all { | ||
if (compilationName == "test" && target.platformType == KotlinPlatformType.native) { | ||
compilerOptions.configure { | ||
freeCompilerArgs.add("-linker-options") | ||
freeCompilerArgs.add("-F/your/path/Carthage/Build/Sentry.xcframework/ios-arm64_x86_64-simulator/") | ||
} | ||
} | ||
} | ||
} | ||
``` | ||
|
||
**4. Run the tests** |