[macOS] Add "debugging" (get-task-allow
) to the export options, to allow using native debugger.
This commit is contained in:
parent
738205d923
commit
2dd6c3eb09
@ -178,6 +178,7 @@ void EditorExportPlatformOSX::get_export_options(List<ExportOption> *r_options)
|
|||||||
r_options->push_back(ExportOption(PropertyInfo(Variant::BOOL, "codesign/entitlements/calendars"), false));
|
r_options->push_back(ExportOption(PropertyInfo(Variant::BOOL, "codesign/entitlements/calendars"), false));
|
||||||
r_options->push_back(ExportOption(PropertyInfo(Variant::BOOL, "codesign/entitlements/photos_library"), false));
|
r_options->push_back(ExportOption(PropertyInfo(Variant::BOOL, "codesign/entitlements/photos_library"), false));
|
||||||
r_options->push_back(ExportOption(PropertyInfo(Variant::BOOL, "codesign/entitlements/apple_events"), false));
|
r_options->push_back(ExportOption(PropertyInfo(Variant::BOOL, "codesign/entitlements/apple_events"), false));
|
||||||
|
r_options->push_back(ExportOption(PropertyInfo(Variant::BOOL, "codesign/entitlements/debugging"), false));
|
||||||
|
|
||||||
r_options->push_back(ExportOption(PropertyInfo(Variant::BOOL, "codesign/entitlements/app_sandbox/enabled"), false));
|
r_options->push_back(ExportOption(PropertyInfo(Variant::BOOL, "codesign/entitlements/app_sandbox/enabled"), false));
|
||||||
r_options->push_back(ExportOption(PropertyInfo(Variant::BOOL, "codesign/entitlements/app_sandbox/network_server"), false));
|
r_options->push_back(ExportOption(PropertyInfo(Variant::BOOL, "codesign/entitlements/app_sandbox/network_server"), false));
|
||||||
@ -845,6 +846,10 @@ Error EditorExportPlatformOSX::export_project(const Ref<EditorExportPreset> &p_p
|
|||||||
ent_f->store_line("<key>com.apple.security.automation.apple-events</key>");
|
ent_f->store_line("<key>com.apple.security.automation.apple-events</key>");
|
||||||
ent_f->store_line("<true/>");
|
ent_f->store_line("<true/>");
|
||||||
}
|
}
|
||||||
|
if ((bool)p_preset->get("codesign/entitlements/debugging")) {
|
||||||
|
ent_f->store_line("<key>com.apple.security.get-task-allow</key>");
|
||||||
|
ent_f->store_line("<true/>");
|
||||||
|
}
|
||||||
|
|
||||||
if ((bool)p_preset->get("codesign/entitlements/app_sandbox/enabled")) {
|
if ((bool)p_preset->get("codesign/entitlements/app_sandbox/enabled")) {
|
||||||
ent_f->store_line("<key>com.apple.security.app-sandbox</key>");
|
ent_f->store_line("<key>com.apple.security.app-sandbox</key>");
|
||||||
|
Loading…
Reference in New Issue
Block a user