mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-09 09:34:57 +09:00
CMake: Add a command for codesigning with the get-task-allow entitlement
This allows developers on macOS to open Ladybird.app in Instruments. Add some documentation for how to use the command as well. It is enabled automatically when CMAKE_BUILD_TYPE is not Release or RelWithDebInfo.
This commit is contained in:
parent
3cdd4fb769
commit
d220cf3abd
Notes:
sideshowbarker
2024-07-17 09:48:50 +09:00
Author: https://github.com/ADKaster
Commit: d220cf3abd
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/317
Reviewed-by: https://github.com/trflynn89
3 changed files with 34 additions and 1 deletions
|
@ -204,8 +204,22 @@ After running Ladybird as suggested above with `./Meta/ladybird.sh run ladybird`
|
|||
|
||||
Now breakpoints, stepping and variable inspection will work.
|
||||
|
||||
### Debugging with Xcode on macOS
|
||||
### Debugging with Xcode or Instruments on macOS
|
||||
|
||||
If all you want to do is use Instruments, then an Xcode project is not required.
|
||||
|
||||
Simply run the `ladybird.sh` script as normal, and then make sure to codesign the Ladybird binary with the proper entitlements to allow Instruments to attach to it.
|
||||
|
||||
```
|
||||
./Meta/ladybird.sh build
|
||||
ninja -C build/ladybird apply-debug-entitlements
|
||||
# or
|
||||
codesign -s - -v -f --entitlements Meta/debug.plist Build/ladybird/bin/Ladybird.app
|
||||
```
|
||||
|
||||
Now you can open the Instruments app and point it to the Ladybird app bundle.
|
||||
|
||||
If you want to use Xcode itself for debugging, you will need to generate an Xcode project.
|
||||
The `ladybird.sh` build script does not know how to generate Xcode projects, so creating the project must be done manually.
|
||||
|
||||
```
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue