Attention: Here be dragons
This is the latest
(unstable) version of this documentation, which may document features
not available in or compatible with released stable versions of Godot.
Checking the stable version of the documentation...
Debuggen unter macOS
Debuggen des Godot Editors
Um einen Debugger an den signierten macOS-Prozess anzuhängen, ist die Berechtigung "com.apple.security.get-task-allow" erforderlich, die standardmäßig nicht aktiviert ist, da Anwendungen nicht notarisiert werden können, solange sie aktiviert ist. Wenn Sie einen offiziellen Build des Editors debuggen wollen, sollte er mit den richtigen Berechtigungen neu signiert werden.
Erstellen Sie eine Textdatei editor.entitlements mit dem folgenden Inhalt:
<?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-dyld-environment-variables</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-executable-page-protection</key>
<true/>
<key>com.apple.security.cs.disable-library-validation</key>
<true/>
<key>com.apple.security.device.audio-input</key>
<true/>
<key>com.apple.security.device.camera</key>
<true/>
<key>com.apple.security.get-task-allow</key>
<true/>
</dict>
</plist>
Then use the following command to re-sign the editor:
codesign -s - --deep --force --options=runtime --entitlements ./editor.entitlements ./path/to/Godot.app
Debuggen eines exportierten Projekts
Um Debugging zu erlauben, wählen Sie die Berechtigung codesign\debugging (com.apple.security.get-task-allow) während des Exports. Wenn diese Option ausgewählt ist, wird die Notarisierung nicht unterstützt und sollte deaktiviert werden.