All Questions
Tagged with ios kotlin-multiplatform
356
questions
0
votes
1
answer
31
views
Kotlin Multiplatform serialization does not link for ios target
While compiling a Multiplatform Project with some simple @Serializable classes, such as:
@Serializable
data class Something(
val value: Int,
val otherValue: String,
)
to the iosApp target, the ...
-1
votes
1
answer
92
views
How do I make a BLE connection to a peripheral with Kotlin Multiplatform or native Android?
Working with BLE through the Android SDK causes a lot of pain. I would like someone to help me with a good implementation of BLE connectivity. Also, it would be nice if this code was also available on ...
-1
votes
0
answers
37
views
json to object in KMP
I have a json file in which there is information about animals and their names. I am attaching this json file for you. I want to know if I can use this file in multi-platform Kotlin and for Android ...
0
votes
0
answers
79
views
Room DataBase in KMP
I have a database ( mysqlite_sampel.db), I want to put it in the files folder and use the information in it, how can I use a database that is in the files folder both in Android and iOS and ROOM and ...
0
votes
1
answer
49
views
How to upload large files in KMM using ktor?
I am looking for solution to upload large files(1 GB or more) in KMM using Ktor. If i use ByteArray its not efficient and produces out of memory issue. Is There any way in ktor to upload files using ...
-1
votes
1
answer
39
views
How to upload a video using ktor in iOS?
I've a kmm project. I am trying to upload a video. For small files I can convert Data to ByteArray, but what to do about videos > 30MBs?
For android, I convert File to ByteReadChannel and set as ...
-1
votes
1
answer
67
views
Can we publish compose multiplatform iOS on app Store?
As we all know that now we can develop iOS applications in Kotlin Multiplatform (KMP) with shared UI or using Compose Multiplatform (CMP).
Now CMP is currently in Beta so can we publish compose ...
-1
votes
0
answers
25
views
"Return type is MKAnnotationView?, which is not a subtype of overridden" kmm platform.MapKit.*
I get Return type is 'MKAnnotationView', which is not a subtype of overridden public open expect fun mapView(mapView: MKMapView, didSelectAnnotation: MKAnnotationProtocol): Unit defined in platform....
-1
votes
1
answer
95
views
KMP: An error occurred during an xcrun execution. Make sure that Xcode and its command line tools are properly installed
I recently have started learning KMP and got stuck on this error. I have created sample project from the Jetbrains KMP wizard. I opened the downloaded project in Android Studio and installed in the ...
-1
votes
1
answer
66
views
How to Select a Photo from the Gallery in a Kotlin Multiplatform Project
I'm working on a Kotlin Multiplatform project targeting both Android and iOS, and I need to implement functionality to select a photo from the gallery. I've been trying to figure out the best approach ...
0
votes
0
answers
79
views
Wrap callback function with cancellation mechanism into Swift async/await?
I'm working on wrapping a function from a Kotlin Multiplatform (KMP) codebase in Swift. While my current implementation works, it feels quite verbose and boilerplate. I'm looking for a more elegant, ...
1
vote
1
answer
75
views
Kotlin Multiplatform: error on sync The Default Kotlin Hierarchy Template was not applied
I try to sync and build a project in KMP but I have this error:
The Default Kotlin Hierarchy Template was not applied to 'project ':core'':
Explicit .dependsOn() edges were configured for the ...
3
votes
2
answers
584
views
Room with KMM: Unresolved reference 'instantiateImpl'
I'm trying to implement Room into my Kotlin Multiplatform project, and Im using the official docs at https://developer.android.com/kotlin/multiplatform/room
However, when trying to provide the ...
0
votes
0
answers
44
views
MLKit text recognition iOS Kotlin Multiplatform
I am trying to use mlkit on ios from a shared module. I added pod's using cocoapods and am trying to repeat this instructions
I get a photo from a common module in the form of a byte array using the &...
0
votes
0
answers
55
views
Exposing ComposeApp to additional iOS targets
I started a new Kotlin multiplatform app (using the Kotlin Multiplatform Wizard).
I created an iOS Widget, resulting in two targets: the App and the Widget.
I shared some of the App's files with the ...