Skip to content

Commit ae962d8

Browse files
author
onion
committed
fix: ios package error
1 parent 69d5231 commit ae962d8

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

composeApp/build.gradle.kts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,10 +59,14 @@ kotlin {
5959
}
6060
iosTarget.compilations["main"].cinterops {
6161
val sdloader by creating {
62-
val headersDir = project.file("${rootProject.projectDir}/cpp/stable-diffusion.cpp/include")
62+
val headersDir = project.file("${rootProject.projectDir}/cpp/stable-diffusion.cpp")
63+
if (!headersDir.exists()) {
64+
println("WARNING: Headers dir not found at $headersDir")
65+
}
6366
defFile(project.file("src/nativeInterop/cinterop/sdloader.def"))
6467
compilerOpts("-I${headersDir.absolutePath}")
6568
includeDirs(headersDir)
69+
extraOpts("-I${headersDir.absolutePath}")
6670
extraOpts("-verbose")
6771
}
6872
}

0 commit comments

Comments
 (0)