drofwarcs
02/04/2019, 12:10 AMdrofwarcs
02/04/2019, 12:10 AMfromPreset(iosPreset, 'ios') {
binaries {
framework()
}
compilations.main {
def productsDir = new File("").absolutePath
linkerOpts "-F${productsDir}/common/libs"
cinterops{
ocmockito {
includeDirs "${productsDir}/common/libs/OCMockitoIOS.framework/Headers"
}
}
}
}drofwarcs
02/04/2019, 12:11 AMerror: unresolved reference: ocmockito when I go to build the projectdrofwarcs
02/04/2019, 12:11 AMorangy
drofwarcs
02/04/2019, 6:23 AMcompilations.main to compilations.all seem to get me pass that issue.russhwolf
02/04/2019, 12:52 PMcompilations.test would work if you only need it for testsilya.matveev
02/04/2019, 2:25 PMI thinkThis is right. Also thewould work if you only need it for testscompilations.test
linkerOpts property of a compilation affects only binaries created using the compilation.outputKinds method. If you declare a binary using the binaries DSL, you need to use linkerOpts of this binary:
binaries {
framework {
linkerOpts += ["-F${productsDir}/common/libs"]
}
}drofwarcs
02/04/2019, 2:32 PMpackageName of ocmockito under cinterops. Yesterday I had started out with compilations.test but when that failed I went to compilations.main thinking that the test compilations was wrong. the error error: unresolved reference: ocmockito was right all alone, I had just overlooked a simple detail. Thanks again for all of your help @svyatoslav.scherbina @russhwolf