https://kotlinlang.org logo
#multiplatform
Title
# multiplatform
s

saket

10/30/2020, 10:59 PM
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.
Copy code
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
Copy code
fromPreset(presets.macosX64, "macos") {
  compilations.main {
    cinterops {
      objectivegit {
        defFile "src/nativeInterop/cinterop/objectivegit.def"
        compilerOpts "-F$projectDir/Carthage/Build/Mac/"
      }
    }
  }
}
objectivegit.def
Copy code
depends = Foundation
package = libgit2.ObjectiveGit
language = Objective-C
modules = ObjectiveGit

compilerOpts = -framework ObjectiveGit
linkerOpts = -framework ObjectiveGit
t

Tijl

10/31/2020, 7:39 AM
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
10 Views