Thread
#multiplatform
    saket

    saket

    1 year ago
    Kotlin/native is unable to find a carthage framework linked through cinterop when running tests. I’m able to use them fine from kotlin/native. Can someone please check? I’ve been banging my head for a while.
    e: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld invocation reported errors
    
    The /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld command returned non-zero exit code: 1.
    output:
    ld: framework not found ObjectiveGit
    
    > Task :shared:linkDebugTestMacos FAILED
    build.gradle
    fromPreset(presets.macosX64, "macos") {
      compilations.main {
        cinterops {
          objectivegit {
            defFile "src/nativeInterop/cinterop/objectivegit.def"
            compilerOpts "-F$projectDir/Carthage/Build/Mac/"
          }
        }
      }
    }
    objectivegit.def
    depends = Foundation
    package = libgit2.ObjectiveGit
    language = Objective-C
    modules = ObjectiveGit
    
    compilerOpts = -framework ObjectiveGit
    linkerOpts = -framework ObjectiveGit
    t

    Tijl

    1 year ago
    yeah this is just a big piece of missing functionality, see this chain of threads for possible solutions: https://kotlinlang.slack.com/archives/C3SGXARS6/p1601036422007800?thread_ts=1601035971.007100&cid=C3SGXARS6