Closed jamesjmtaylor closed 3 years ago
Let me have a look and see whats going on
Hi @jamesjmtaylor - i have updated the KotlinMM example for ios - this is now working, maybe use this as reference. https://github.com/Reedyuk/blue-falcon/tree/master/examples/KotlinMP-Example If you are still struggling, then provide me with an example and i can have a look for you.
@Reedyuk awesome! Thank you. I'll give it a go and let you know if I run into any issues.
@Reedyuk I went through the changes you made at https://github.com/Reedyuk/blue-falcon/commit/98dff7bda90f219137ed799f9e25379fc83e3ef7 and https://github.com/Reedyuk/blue-falcon/commit/afb5b30c8b52fe057fbdaff4dacb69a56f46c739 Unfortunately I had already implemented these changes prior to your fix (the sample project wouldn't compile otherwise). You can find my source code at https://github.com/jamesjmtaylor/blue-falcon-kmm-sample. After confirming all the changes that you had were present in my project I compiled and ran it in XCode only to receive the same error. Hopefully I'm just overlooking something dumb 😄
@Reedyuk I found the issue. Since I'm fairly new to KMM, I was launching the iOS project from XCode, rather than Android Studio. That meant that the Framework wasn't being recompiled, even after I compiled the Android KMM app to compare this iOS app against. After making that small change to my workflow it compiled & ran! Thank you for looking into this.
Describe the bug After running an XCode project created with KMM I encounter the error "kotlin.IllegalStateException: There is no event loop. Use runBlocking { ... } to start one."
To Reproduce Steps to reproduce the behavior:
Expected behavior The DevicesViewController should populate with scanned devices.
Stacktrace
Desktop (please complete the following information):
Smartphone (please complete the following information):