Hi. I am trying to build a kmm project which uses ...
# multiplatform
r
Hi. I am trying to build a kmm project which uses
SQLCipher
but getting error.
Copy code
Exception in thread "main" java.lang.Error: /var/folders/z3/gtgsk6493gz1yqt86nzbgnyh0000gn/T/17166564073649352201.m:1:9: fatal error: could not build module 'SQLCipher'

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':xxx:cinteropSQLCipherIosX64'.
Any ideas how to fix this?
There is SQLCipher pod defined and found this https://touchlab.co/sqlcipher-kotlin-multiplatform-mobile/ but what does it mean
Remember, if you add pod to your Gradle config, you need to build from Xcode and not the Gradle command line. I always forget this.
🤔
d
How are you starting your build? Have you tried opening the iOS module in Xcode (be sure to open the workspace file if there is one) and then building in Xcode? Also, are you on an M1 Mac?
r
• It’s KMM library project, not an application. There is no iOS module • No. I am not on M1
It was xcode issue https://youtrack.jetbrains.com/issue/KT-48807. Downgraded to 12.5.1 and it is building fine now.