Hardened runtime for Java and Mojave

后端 未结 3 1826
星月不相逢
星月不相逢 2021-01-02 03:18

I currently distribute a Java application, packaged and signed using pkgbuild on macOS.

Recently, Apple warns developers:

\"In an upcoming rel

3条回答
  •  独厮守ぢ
    2021-01-02 03:57

    In addition to tresf's answer above, if your app is sandboxed (and possibly even if not) then the hardened runtime will fail when the JVM is loaded. To work around that you'll need to add some keys to your entitlements when signing. The necessary entitlement entries are below, copied from TAO ZHOU's solution here: https://github.com/TheInfiniteKind/appbundler/issues/39

    com.apple.security.cs.allow-jit
    
    com.apple.security.cs.allow-unsigned-executable-memory
    
    com.apple.security.cs.disable-executable-page-protection
    
    com.apple.security.cs.disable-library-validation
    
    com.apple.security.cs.allow-dyld-environment-variables
    
    

提交回复
热议问题