Post

Replies

Boosts

Views

Activity

Debugging fails with "Error 1" if hardened runtime is enabled
Hi,I'm unable to debug my mac application under XCode when Hardened Runtime is enabled. I'm getting 'Message from debugger: Error 1'.lldb -p <pid> gives the same error:error: attach failed: Error 1Disabling hardened runtime solves the problem, but I'm wondering if there's a way to debug with the hardened runtime enabled, and why I'm getting such a cryptic error message.Using XCode 10.2.1 on macOS 10.14.5.
19
0
18k
Jul ’19
macos: find all installed applications capable of editing (eg) .jpg files
Hi, I think the title says it: my application needs to obtain a list of all applications that are configured as potential editors of a certain file type, for example jpeg or tiff. I've found LSCopyAllRoleHandlersForContentType which appears to do what I need, but it is deprecated since macos 12.0. What's the modern alternative? My app is built in c++ with some objective-c. Thanks Joost
1
0
520
Mar ’24