Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Gradle Plugin] improve error message #303

Open
buenaflor opened this issue Dec 17, 2024 · 4 comments
Open

[Gradle Plugin] improve error message #303

buenaflor opened this issue Dec 17, 2024 · 4 comments

Comments

@buenaflor
Copy link
Contributor

Description

A problem occurred configuring project ':kmp'.
> Sentry Cocoa Framework not found at /user/path/.../

this doesn't tell much in how to solve the issue, we should mention that they can either set a custom frameworkpath or set a custom path to the xcodeproject

@RankoR
Copy link

RankoR commented Jan 6, 2025

@buenaflor could you please explain how exactly to fix it? Just faced this issue, and not that familiar with iOS development.

@buenaflor
Copy link
Contributor Author

Do you use SPM or cocoapods?

@RankoR
Copy link

RankoR commented Jan 6, 2025

Neither before this, but added Cocoapods gradle plugin, than added

kotlin {
   cocoapods {
        version = "1.0.0"
    }
}

And

sentryKmp {
    linker {
        xcodeprojPath.set(rootProject.file("iosApp/iosApp.xcodeProj").absolutePath)
    }
}

And looks like it works now (or at least it syncs with Gradle).

Seems that it also should be reflected in the KMP lib docs :)

@buenaflor
Copy link
Contributor Author

Usually you only set up either SPM or Cocoapods, not both

If you want you can create a new issue, let's not discuss it here since this issue is about error messages

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Backlog
Development

No branches or pull requests

2 participants