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...
Налагодження в macOS
Налагодження редактора Godot
Щоб під’єднати налагоджувач до підписаного процесу macOS, потрібен дозвіл «com.apple.security.get-task-allow», який не ввімкнено за замовчуванням, оскільки програми не можна завірити нотаріально, поки це ввімкнено. Якщо ви хочете налагодити офіційну збірку редактора, її слід повторно підписати з належними правами.
Створіть текстовий файл editor.entitlements з таким вмістом:
<?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>
Потім скористайтеся такою командою, щоб повторно підписати редактор:
codesign -s - --deep --force --options=runtime --entitlements ./editor.entitlements ./path/to/Godot.app
Налагодження експортованого проекту
Щоб дозволити налагодження, виберіть дозвіл codesign\debugging (com.apple.security.get-task-allow) під час експорту. Якщо його вибрано, нотаріальне засвідчення не підтримується, тому його слід вимкнути.