sentry-kotlin-multiplatform
sentry-kotlin-multiplatform copied to clipboard
[Gradle Plugin] Better support for tests not working on cocoa targets
Description
Cocoa tests will not work in the following scenarios:
- using SPM
- packages that consume a shared package where cocoapods is set up. Example:
- Package A is a package that is consumed by multiple other packages (maybe a package that deals with network requests).
- Package B is the main shared package that is set up with Cocoapods and package B consumes package A as a dependency.
- Assumption by users: since Package A is already set up with cocoapods, it will transitively work for tests in package B → it does not
- Reason: since package B is isolated in its own package it has no reference as to where to get the binary for the cocoa SDK so naturally it will fail
Solutions
we link the framewor in the gradle plugin