Skip to content

Commit

Permalink
1.fix ios can't link sqlite sqldelight/sqldelight#1442
Browse files Browse the repository at this point in the history
  • Loading branch information
LaputaZeej committed Mar 8, 2024
1 parent 66395f1 commit 85b79aa
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 5 deletions.
17 changes: 14 additions & 3 deletions composeApp/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,20 @@ kotlin {
iosArm64(),
iosSimulatorArm64()
).forEach { iosTarget ->
iosTarget.binaries.framework {
baseName = "ComposeApp"
isStatic = true
// iosTarget.binaries.framework {
// baseName = "ComposeApp"
// isStatic = true
// }

// fix ios can't link sqlite https://github.com/cashapp/sqldelight/issues/1442
with(iosTarget){
binaries.framework {
baseName = "ComposeApp"
isStatic = false
}
compilations.all {
kotlinOptions.freeCompilerArgs += arrayOf("-linker-options", "-lsqlite3")
}
}
}

Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1709782435.782889: Module build session file for module cache at Path(str: "/Users/xiangpengle/Documents/as/kmp/HDVirtuals/iosApp/DerivedData/ModuleCache.noindex")
1709882413.0931501: Module build session file for module cache at Path(str: "/Users/xiangpengle/Documents/as/kmp/HDVirtuals/iosApp/DerivedData/ModuleCache.noindex")
Binary file not shown.
2 changes: 1 addition & 1 deletion iosApp/DerivedData/iosApp/info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<plist version="1.0">
<dict>
<key>LastAccessedDate</key>
<date>2024-03-07T03:33:55Z</date>
<date>2024-03-08T07:20:12Z</date>
<key>WorkspacePath</key>
<string>/Users/xiangpengle/Documents/as/kmp/HDVirtuals/iosApp/iosApp.xcodeproj</string>
</dict>
Expand Down

0 comments on commit 85b79aa

Please sign in to comment.