https://kotlinlang.org logo
#multiplatform
Title
# multiplatform
d

Daniele B

04/06/2021, 12:59 PM
What is the best way to solve this IDE error with the iOS SqlDelight driver?
At the moment I am using this:
but I wonder if ios {} and iosArm64() and iosX64() are redundant
k

Kris Wong

04/06/2021, 1:02 PM
this is a known issue with SQLDelight
d

Daniele B

04/06/2021, 1:12 PM
yes, I was just wondering if it gives any compilation problem to keep ios {}iosArm64() and iosX64() in the same gradle file. I guess not.
k

Kris Wong

04/06/2021, 1:59 PM
as long as you always refer to a given target with the same name (in your case the default name), then you will be working with the same target
k

kpgalligan

04/06/2021, 2:28 PM
It's a known issue with HMPP. I wouldn't say it's sqldelight specific.
There are some inbound PR's for the native driver that reduce external dependencies, so we may be able to turn it on, but I've had trouble with other libraries and we've had to hold off (context: https://github.com/touchlab/Stately/issues/46)