alex on Nostr: We are compiling the Kotlin code as an XCFramework package, which is then imported ...
We are compiling the Kotlin code as an XCFramework package, which is then imported into a native Swift project. In this setup, step-through debugging of the Kotlin code is not possible. We use the `AAkira/Napier` KMP library for logging, and logs can be viewed in Xcode.
However, if you set up a Kotlin Multiplatform Mobile project, both Kotlin and Swift code can live side by side in the same project, allowing for much better interoperability and full source-level debugging.
Published at
2025-05-01 21:11:44Event JSON
{
"id": "3cce1c7e296c691e74055fda8fe2c8e5f33a3d0a95e3dafad06af01b11a3fec8",
"pubkey": "b10b0d5e5fae9c6c48a8c77f7e5abd42a79e9480e25a4094051d4ba4ce14456b",
"created_at": 1746133904,
"kind": 1,
"tags": [
[
"e",
"68a39a12c42a424ab13406c4dbe273dcd042922390e6189d5b9fe511c1b8b668",
"wss://relay.primal.net",
"root"
],
[
"e",
"6d10d90ae79a275e4765c3458e5fe7e6067f92c35419076548638b1734aaa384",
"wss://relay.primal.net",
"reply"
],
[
"p",
"b10b0d5e5fae9c6c48a8c77f7e5abd42a79e9480e25a4094051d4ba4ce14456b"
],
[
"p",
"2779f3d9f42c7dee17f0e6bcdcf89a8f9d592d19e3b1bbd27ef1cffd1a7f98d1"
]
],
"content": "We are compiling the Kotlin code as an XCFramework package, which is then imported into a native Swift project. In this setup, step-through debugging of the Kotlin code is not possible. We use the `AAkira/Napier` KMP library for logging, and logs can be viewed in Xcode.\n\nHowever, if you set up a Kotlin Multiplatform Mobile project, both Kotlin and Swift code can live side by side in the same project, allowing for much better interoperability and full source-level debugging.",
"sig": "4bc346835a56f35d303db7b5f2688530db4c315e3d085f979dd6106006c4500b810b5a17eae10239f392271e1c1f2796e52a8fd7a512d85c7d4fb903e4414508"
}