Artem Chepurnoy
03/24/2023, 9:20 AMError occurred during initialization of VM
Could not reserve enough space for code cache (245760K)
that now happens for me in new the builds, I've tried to add the entitlements file:
entitlements.plist
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "<http://www.apple.com/DTDs/PropertyList-1.0.dtd>">
<plist version="1.0">
<dict>
<key>com.apple.security.app-sandbox</key>
<true/>
<key>com.apple.security.cs.allow-jit</key>
<true/>
<key>com.apple.security.cs.allow-unsigned-executable-memory</key>
<true/>
<key>com.apple.security.cs.disable-library-validation</key>
<true/>
<key>com.apple.security.cs.allow-dyld-environment-variables</key>
<true/>
<key>com.apple.security.cs.debugger</key>
<true/>
<key>com.apple.security.device.audio-input</key>
<true/>
<!-- Added to fix: Could not reserve enough space for code cache -->
<!-- <https://github.com/iterate-ch/cyberduck/issues/13347> -->
<key>com.apple.security.automation.apple-events</key>
<true/>
</dict>
</plist>
build.gradle.kts
macOS {
bundleID = "hello.world"
entitlementsFile.set(project.file("entitlements.plist"))
signing {
// Config here.
}
notarization {
// Config here.
}
}
the build now fails with an error Error: Invalid Option: [--mac-entitlements]
.
I'm using Kotlin 1.8.10 and Compose 1.3.1 + ./gradlew :desktop:packageDmg :desktop:notarizeDmg
to compile it.Artem Chepurnoy
04/12/2023, 8:01 AM