Skip to content

Commit e0f2e1b

Browse files
committed
update comment
1 parent 4afae70 commit e0f2e1b

File tree

1 file changed

+11
-7
lines changed
  • sentry-kotlin-multiplatform-gradle-plugin/src/main/java/io/sentry/kotlin/multiplatform/gradle

1 file changed

+11
-7
lines changed

sentry-kotlin-multiplatform-gradle-plugin/src/main/java/io/sentry/kotlin/multiplatform/gradle/CocoaFrameworkLinker.kt

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,9 @@ internal class FrameworkPathResolver(
9696
}
9797
}
9898

99+
/**
100+
* Fallback method for fetching paths
101+
*/
99102
private fun getFrameworkPath(
100103
type: FrameworkType,
101104
derivedData: String,
@@ -164,14 +167,17 @@ internal class FrameworkLinker(
164167
private val frameworkNotFoundMessage = """
165168
Failed to find Sentry Cocoa framework. Steps to resolve:
166169
167-
1. Install via SPM or download the framework manually
170+
1. Install Sentry Cocoa via SPM in Xcode
168171
2. Verify framework exists in Xcode's DerivedData folder:
169172
- Static: Sentry.xcframework
170173
- Dynamic: Sentry-Dynamic.xcframework
171-
3. Either:
172-
a) Set explicit path in build.gradle.kts:
173-
sentryKmp { frameworkPath.set("path/to/framework") }
174-
b) Configure Xcode project path in sentryKmp.xcodeprojPath
174+
175+
If problem persists consider setting explicit path in build.gradle.kts:
176+
sentryKmp {
177+
linker {
178+
frameworkPath.set("path/to/framework")
179+
}
180+
}
175181
176182
More details: https://docs.sentry.io/platforms/apple/install/
177183
""".trimIndent()
@@ -225,8 +231,6 @@ internal fun KotlinNativeTarget.toSentryFrameworkArchitecture(): Set<String> = b
225231
add("watchos-arm64_i386_x86_64-simulator")
226232
add("watchos-arm64_i386_x86_64-simulator")
227233
}
228-
229-
else -> emptySet<String>()
230234
}
231235
}
232236

0 commit comments

Comments
 (0)