如何在AppBundler中使用强化的运行时构建MacOS应用 [英] How to build MacOS app with hardened runtime in AppBundler

查看:185
本文介绍了如何在AppBundler中使用强化的运行时构建MacOS应用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在gradle中使用AppBundler插件来构建我的Java应用程序. 现在要对我的应用程序进行公证,Apple需要使用强化运行时"选项构建该应用程序.

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?

推荐答案

我在对我的应用进行签名时添加了以下权利,并解决了该问题.

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>

这篇关于如何在AppBundler中使用强化的运行时构建MacOS应用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆