Moussa
12/15/2022, 3:06 PM:linkDebugTestIosSimulatorArm64
I get the following error:
e: /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: warning: object file (/var/folders/sd/vq_ngt5j7kqfzb0t3z91t5g40000gn/T/konan_temp6320318283573195829/result.o) was built for newer iOS Simulator version (14.0) than being linked (9.0)
Undefined symbols for architecture arm64:
"_OBJC_CLASS_$__TtC10ModuleAKMMFunctions", referenced from:
objc-class-ref in result.o
ld: symbol(s) not found for architecture arm64
P.S
Only one class have the annotation @objc
(KMMFunctions) so that I can easily use the pod implementation without any hassles.
The whole pod module is running with no issues alone and after importing it to xcode project.
PodSpec is:
s.ios.deployment_target = '13.0'
s.osx.deployment_target = '12.0'
s.tvos.deployment_target = '13.0'
s.watchos.deployment_target = '8.0'
cocoapods {
this.summary = "Module Summary"
this.version = rootProject.version.toString()
this.authors = "Me"
this.ios.deploymentTarget = "13.0"
this.osx.deploymentTarget = "12.0"
this.tvos.deploymentTarget = "13.0"
this.watchos.deploymentTarget = "8.0"
framework {
this.baseName = currentModuleName
}
pod("LOCAL POD") {
version = "1.0.0"
source = path(project.file("../iOSLibs/POD FOLDER NAME"))
}
}
Kotlin v1.7.21
IntelliJ IDEA Ultimate v2022.3