Benjamin Charais
08/19/2022, 5:48 PMframework {
baseName = "RedShirt"
isStatic = true
embedBitcode(BITCODE)
}
pod("xxxxx") {
moduleName = "xxxx"
}
useLibraries()
Using Kotlin 1.7.10
currently, the build goes swimmingly, and it very much seems that everything is in place, removing the pod, drastically impacts the output file size. I am running my output via podPublishReleaseXCFramework
incase that has any bearing.
The issue comes in when importing in XCode. It imports and references everything as expected, but when trying to build it will rarely, and intermittently work. The most common experience is the build failing with arm64
errors around:
Undefined symbols for architecture arm64:
"_OBJC_CLASS_$_UIDevice", referenced from:
objc-class-ref in RedShirt(result.o)
Showing Recent Messages
Undefined symbol: _OBJC_CLASS_$_UIDevice
This error is not specific to arm, based on the build target.
I haven't been able to track down any source on this kind of issue, everything is a brand new empty, and simple project. I don't believe I am missing anything, but this inconsistency is making things difficult.eBenjamin Charais
08/19/2022, 7:03 PM.o
when, I would expect that the marker, isStatic
would output a .a