-
Notifications
You must be signed in to change notification settings - Fork 47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
not working with xcFramework #116
Comments
Hi, the installation should work the same way in Xcode 16. Just add your Kotlin souces to your Xcode project and make sure they are not added to any of the compilation targets. We prefer adding the source dir as a folder reference instead of a group, as that'll make sure you don't need to manually add any new Kotlin files. As long as your XCFramework is built on the same machine your sources live on, it'll work the same as a regular framework. If you're building the code on a different machine, that usually means the source paths are different and you'll have to manually map files using an LLDB command. That's out of scope for Xcode-Kotlin at this time. |
I'll double-down here. The important points: If your XCFramework is not built on your machine, you won't be able to debug it. That's not a Kotlin-specific issue. We published a post about KMP and teams related to this: https://touchlab.co/kmp-teams-use-source Yes, there are ways to map paths, but they're pretty painful to set up. If the Kotlin code was built locally, well, different story. You could put a breakpoint in Swift code before calling Kotlin and try to keep "stepping in". That might help diagnose path issues, if any. |
thank you very much , I make some progress
however, I wants some help to make my project works with xcode-kotlin |
Could you share a screenshot of a crash? Usually you need to select the correct frame in the left panel in Xcode, so if you share the screenshot I might be able to navigate you to it. |
thank you, |
Hi @Zorodebug5, sorry for the delay. Could you record your screen to showcase what's happening? It'd help is reproduce the issue and see if there's something we can do about it. Thanks! |
Hello,
The text was updated successfully, but these errors were encountered: