Anmol Verma
11/18/2022, 4:13 PMsymbol multiply defined!
? and how can i resolve this ?
I am using a pod in a library project A
and now i have declared the pod in my Main Project
which uses this library A
so that the framework is found in the runtime but the compilation fails with the following
Compilation failed: Linking globals named 'knifunptr_cocoapods_GRPCClient8_TransportIDIsEqual': symbol multiply defined!
Anmol Verma
11/18/2022, 5:44 PMkpgalligan
11/18/2022, 5:57 PMAnmol Verma
11/19/2022, 5:04 AMAnmol Verma
11/19/2022, 5:04 AMAnmol Verma
11/19/2022, 5:06 AMcocoapods {
ios.deploymentTarget = "14.0"
pod("gRPC-ProtoRPC", moduleName = "GRPCClient")
pod("Protobuf")
}
If i don’t include this, then the build fails with
Undefined symbols for architecture x86_64:
"_GPBComputeBoolSize", referenced from:
_cocoapods_Protobuf_GPBComputeBoolSize_wrapper53 in result.o
"_GPBComputeEnumSize", referenced from:
_cocoapods_Protobuf_GPBComputeEnumSize_wrapper91 in result.o
"_GPBComputeInt32Size", referenced from:
_cocoapods_Protobuf_GPBComputeInt32Size_wrapper50 in result.o
"_GPBComputeInt64Size", referenced from:
_cocoapods_Protobuf_GPBComputeInt64Size_wrapper49 in result.o
Anmol Verma
11/19/2022, 5:07 AMcocoapods {
version = "1.0"
summary = "*"
homepage = "*"
framework {
baseName = "GRPCKotlinMultiplatform"
}
ios.deploymentTarget = "14.0"
pod("gRPC-ProtoRPC", version = "~> 1.49.0", moduleName = "GRPCClient")
pod("Protobuf", version = "~> 3.21.6", moduleName = "Protobuf")
//pod("gRPC-Core")
}