Post

Replies

Boosts

Views

Created

Sandbox is off but my app cant use certain features
Sandbox is set to no in the entitlements file. Settings → security & privacy → privacy → accessibility is enabled for the app. Can detect global mouse events. Can't use accessibility features: let systemWideElement: AXUIElement = AXUIElementCreateSystemWide() var focusedElement : AnyObject? let error = AXUIElementCopyAttributeValue( systemWideElement, kAXFocusedUIElementAttribute as CFString, &focusedElement ) print(focusedElement) // this prints `nil` Can't execute applescripts ( NSAppleScript() ) Can't send keypress events ( CGEvent().post() ) Also, if i compile the executable with swiftc from terminal and then run from terminal, the app is able to access these features. Are there other xcode settings I need to change or are they always blocked when building from xcode?
2
0
1.1k
Jun ’22
Sandbox is off but my app cant use certain features
Sandbox is set to no in the entitlements file. Settings → security & privacy → privacy → accessibility is enabled for the app. Can detect global mouse events. Can't use accessibility features: let systemWideElement: AXUIElement = AXUIElementCreateSystemWide() var focusedElement : AnyObject? let error = AXUIElementCopyAttributeValue( systemWideElement, kAXFocusedUIElementAttribute as CFString, &focusedElement ) print(focusedElement) // this prints `nil` Can't execute applescripts ( NSAppleScript() ) Can't send keypress events ( CGEvent().post() ) Also, if i compile the executable with swiftc from terminal and then run from terminal, the app is able to access these features. Are there other xcode settings I need to change or are they always blocked when building from xcode?
Replies
2
Boosts
0
Views
1.1k
Activity
Jun ’22
does FamilyControlsMember.individual mode prevent user from disabling the block?
the video mentioned that in .individual mode you can logout of icloud and delete apps (i.e. delete the blocker app (?)). is this during the block?
Replies
2
Boosts
0
Views
957
Activity
Jun ’22