Skip to content

Linker command failed error at XCode build time #278

Closed
@oblakr24

Description

@oblakr24

Platform

Apple

Installed

CocoaPods

Version

0.9.0

Steps to Reproduce

Kotlin 2.0.20

project build.gradle.kts:
kotlin("native.cocoapods") version "2.0.20" apply false

module build.gradle.kts:

kotlin("native.cocoapods") version "2.0.20"

pod setup:

    cocoapods {
        version = "1.0"
        name = "SentryKMP"

        specRepos {
            url("https://github.com/Kotlin/kotlin-cocoapods-spec.git")
        }
        pod("Sentry") {
            version = "~> 8.25"
            linkOnly = true
            extraOpts += listOf("-compiler-option", "-fmodules")
        }
    }

gradle.properties:

kotlin.apple.deprecated.allowUsingEmbedAndSignWithCocoaPodsDependencies=true

Expected Result

Project builds successfully.

Actual Result

Getting this error when trying to build (only happens if I import the Sentry classes and use them in my code, but not otherwise):
Image

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions