I created a KMM project (ios framework distribution is CocoaPods) and just built the application without changing the code.
When I build the iOS application after building the Android application (even if I run Android after iOS), it fails with a following error.
Gradle could not start your build.
> Could not create service of type ResourceSnapshotterCacheService using GradleUserHomeServices.createResourceSnapshotterCacheService().
> Timeout waiting to lock file hash cache (/Users/<user-name>/.gradle/caches/6.7.1/fileHashes). It is currently in use by another Gradle instance.
Owner PID: 57033
Our PID: 57624
Owner Operation:
Our operation:
Lock file: /Users/<user-name>/.gradle/caches/6.7.1/fileHashes/fileHashes.lock
If I kill the another Gradle process and delete the lock file, the build will succeed. But I can't do this every time.
I don't know what's wrong and differences from others.
BTW, I created the project that supports improved Gradle task embedAndSignAppleFrameworkForXcode
.
My environment is below...
Try updating gradle
to 7.1.1
(latest version)
If this doesn't help, consider creating an issue on jetbrains issue tracker, because this doesn't seems like a typical problem and may be solved much faster there