After fixing the issue above, I ran into another related issue. when running the build task, I was getting
ld: framework not found OCMockitoIOS
which is a linker error. Updated my gradle script with linker options in the framework block like:
framework {
embedBitcode("disable")
def productsDir = new File("").absolutePath
linkerOpts = ["-F${productsDir}/common/libs"]
}
which points to the directory where that framework is located. This change gets me past the part where it failed before, but throws a new error
error: compilation failed: Collection has more than one element.
Am I using the wrong linker options or is this a bug in compiler?