Hi there, we're just trying to use SKIE to embed s...
# touchlab-tools
j
Hi there, we're just trying to use SKIE to embed swift code in our framework (all other SKIE features disabled). At the moment, there's just a little test struct that contains one public static let TEST_TEXT. XCode resolves this just fine, but the linker complains:
Copy code
ld: Undefined symbols:
static framework.Test.TEST_TEXT.getter : Swift.String, referenced from:
Any hints?
It's also not appearing in the header file. It's a public struct with one public static let..
t
Could you share the code and where you put it? And is it linker error during Kotlin or app compile?
And do you use the TEST_TEXT from somewhere?
j
The error happens during Xcode app compile. I have framework search path and -framework linker paths set and i can use kotlin code from xcode just fine (this is an existing project where we now want to include swift code in the framework/swift package).
TEST_TEXT is used in the xcode project inside a SwiftUI View, trying to show it in the UI. I can post some code later.
Ok so it all works when i run the iOS app from Android Studio. But it does not work when running from Xcode
t
Do you have the run script to embed the framework?