Hello guys, i am unable to have both `sqldelght` a...
# compose-ios
b
Hello guys, i am unable to have both
sqldelght
and
compose-ios
multiplatform on the same shared module with cocoapods. It looks like sqldelight needs
isStatic = false
and
compose
needs
isStatic = true
. When using both, i am getting the following error
Copy code
expression.kt
File name: App.kt Physical: true Injected: false
fun MainViewController() = ComposeUIViewController { <caret>Text("") }
s
Yes, this needs to be better documented. Ran into the same with Ashampoo Photos. You need to set
Other linker flags
to
-lsqlite3
in XCode to make it work.
b
Should i keep isStatic to true or false
s
I have it on true, because AFAIK this is needed for SKIA. Compose for iOS needed to be static because SKIA needs it. But there was a recent release of skiko that mentions in the release notes that dynamic frameworks should work now. I did not test that.
b
Thanks will try and will confirm
i set it, however i am still getting the error
Copy code
expression.kt
File name: App.kt Physical: true Injected: false
fun MainViewController() = ComposeUIViewController { <caret>App() }
s
There must be something else. I don't know.
🙂 1
b
thanks for your time and help
k
after you set it you have to close xcode and call pod install
👍 1
b
@Konstantin Tskhovrebov i have both added, however i am still facing an issue whenever i add
fun MainViewController(): UIViewController = _ComposeUIViewController_ *{* _App_() *}*
on the iosApp shared module
i mean facing the issue above
m
I have not managed to get SqlDelight to work with iOS in Android Studio. I ran into problems like this. Instead I set static to false and set the linter flags in XCode and tested iPhone i Xcode
d
Since Compose 1.5.0 - now you may use isStatic = false as well
2
K 2