-
-
Notifications
You must be signed in to change notification settings - Fork 19
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
Compilation failed: Linking globals named 'kniprot_cocoapods_Sentry3_SentryMetricsAPIDelegate': symbol multiply defined! #224
Comments
Hey thanks for raising this, I've actually come up with the same issue yesterday by accident. I'm currently investigating this. |
Which Xcode version do you have installed? |
Please check if this fixes your issue, add this to kotlin {
// other kmp config
targets.withType<KotlinNativeTarget>().all {
compilations["main"].cinterops["Sentry"].extraOpts(
"-compiler-option", "-DSentryIntegrationProtocol=SentryIntegrationProtocolUnavailable",
"-compiler-option", "-DSentryMetricsAPIDelegate=SentryMetricsAPIDelegateUnavailable"
)
}
} |
I am also experiencing the same problem. I tried your fix @buenaflor but then I get the following error when performing gradle sync: I don't understand the detail of your fix so sorry if I'm missing the point! |
@robert-nash |
Here you go @buenaflor, thanks for taking a look:
|
hm I've tried it out with a minimal example and it works on my end. |
This should be fixed in |
Thanks for the quick fix @buenaflor, I verified that this is working again on kotlin native with 0.7.1 🚀 |
Platform
Apple, Android
Installed
CocoaPods
Version
0.6.0
Steps to Reproduce
Following the setup instructions in shared build.gradle.kts:
Podfile is:
Build the iOS app.
Expected Result
App should compile.
Actual Result
I've tried a couple of different options laid out in this forum post such as using static frameworks in the Podfile or clearing caches and reinitializing pod file project. But still not sure what is causing the build error.
The text was updated successfully, but these errors were encountered: