How to build MacOS app with hardened runtime in AppBundler

纵饮孤独 提交于 2019-12-13 03:18:46

问题


I am using AppBundler plugin in gradle to build my Java app. Now to have my app notarized, Apple requires the app to be built with 'hardened runtime' option.

Does anyone know how to achieve this?


回答1:


I added the following entitlements when signing my app and fixed the problem.

 <?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.cs.allow-jit</key>
    <true/>
    <key>com.apple.security.cs.allow-unsigned-executable-memory</key>
        <true/>
</dict>
</plist>


来源:https://stackoverflow.com/questions/54758815/how-to-build-macos-app-with-hardened-runtime-in-appbundler

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!