saket
10/30/2020, 10:59 PMe: /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
Tijl
10/31/2020, 7:39 AM