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

Suresh Maidaragi

03/07/2024, 6:05 AM
hi there,...... after updating the few of the library in project to suppport Jetbrains Multiplatform compose v1.6.0, while generating/assembling the build started seeing below error can someone help to check...
java.nio.file.NotDirectoryException
Happening only while running iOS build
Copy code
> Task :pitaraShared:linkDebugFrameworkIosSimulatorArm64 FAILED
error: Compilation failed: /default/linkdata/package_kmmpwpitara

 * Source files: 
 * Compiler version: 1.9.22
 * Output kind: FRAMEWORK

error: java.nio.file.NotDirectoryException: /default/linkdata/package_kmmpwpitara
	at jdk.zipfs/jdk.nio.zipfs.ZipDirectoryStream.<init>(ZipDirectoryStream.java:58)
	at jdk.zipfs/jdk.nio.zipfs.ZipPath.newDirectoryStream(ZipPath.java:755)
	at jdk.zipfs/jdk.nio.zipfs.ZipFileSystemProvider.newDirectoryStream(ZipFileSystemProvider.java:262)
	at java.base/java.nio.file.Files.newDirectoryStream(Files.java:482)
	at org.jetbrains.kotlin.konan.file.File.getListFiles(File.kt:54)
	at org.jetbrains.kotlin.library.impl.MetadataLibraryImpl$packageMetadataParts$1.invoke(KotlinLibraryImpl.kt:76)
	at org.jetbrains.kotlin.library.impl.MetadataLibraryImpl$packageMetadataParts$1.invoke(KotlinLibraryImpl.kt:73)
	at org.jetbrains.kotlin.library.impl.BaseLibraryAccess$inPlace$1.invoke(KotlinLibraryLayoutImpl.kt:68)
	at org.jetbrains.kotlin.library.impl.BaseLibraryAccess$inPlace$1.invoke(KotlinLibraryLayoutImpl.kt:67)
	at org.jetbrains.kotlin.konan.file.ZipUtilKt.withZipFileSystem(ZipUtil.kt:134)
	at org.jetbrains.kotlin.konan.file.ZipUtilKt.withZipFileSystem(ZipUtil.kt:82)
.....
....


error: Compilation finished with errors

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':pitaraShared:linkDebugFrameworkIosSimulatorArm64'.
> Compilation finished with errors

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
> Get more help at <https://help.gradle.org>.

BUILD FAILED in 11s
22 actionable tasks: 6 executed, 16 up-to-date

** BUILD FAILED **


The following build commands failed:
	PhaseScriptExecution Run\ Script /Users/sureshmaidaragi/StudioProjects/kmm-pw-pitara/build/ios/iosApp.build/Debug-iphonesimulator/iosApp.build/Script-7555FFB5242A651A00829871.sh (in target 'iosApp' from project 'iosApp')
(1 failure)
5 Views