Rahul
12/08/2022, 12:42 PMkotlin {
android()
iosArm64("native") {
binaries {
framework {
baseName = "Demo"
}
}
}
sourceSets {
val commonMain by getting {
implementation("de.voize:pytorch-lite-multiplatform:0.5.0")
}
}
}
while generating framework I am getting following error
Undefined symbols for architecture arm64:
"_OBJC_CLASS_$_TorchModule", referenced from:
objc-class-ref in result.o
"_OBJC_CLASS_$_Tensor", referenced from:
objc-class-ref in result.o
"_OBJC_CLASS_$_IValueWrapper", referenced from:
objc-class-ref in result.o
ld: symbol(s) not found for architecture arm64
Given library is multiplatform library
Can anybody help?
kpgalligan
12/08/2022, 3:53 PMcocoapods {
...
pod("PLMLibTorchWrapper") {
version = "<version>"
}
useLibraries()
}
kpgalligan
12/08/2022, 3:54 PMUndefined symbols for architecture arm64:
means you have a linking issue. Specifically that the linker expects native binary that doesn’t exist.kpgalligan
12/08/2022, 3:55 PMRahul
12/08/2022, 6:01 PMkpgalligan
12/08/2022, 6:02 PMkpgalligan
12/08/2022, 6:04 PMRahul
12/09/2022, 5:27 AMpod("PLMLibTorchWrapper") {
version = "<version>"
}
useLibraries()
still facing the same issuekpgalligan
12/09/2022, 3:25 PM