Skip to content

Sandbox restriction errors #1

@mixtly87

Description

@mixtly87

When running a project on a device, I get error:

2024-02-09 00:48:15.380016+0100 DeviceActivityExample[85680:3524791] [authorization] Failed to get service proxy: Error Domain=NSCocoaErrorDomain Code=4099 "The connection to service named com.apple.FamilyControlsAgent was invalidated: failed at lookup with error 159 - Sandbox restriction." UserInfo={NSDebugDescription=The connection to service named com.apple.FamilyControlsAgent was invalidated: failed at lookup with error 159 - Sandbox restriction.}
Setting up the schedule
Current time is:  0
2024-02-09 00:48:15.382659+0100 DeviceActivityExample[85680:3524998] [xpc] Connection error from Optional("com.apple.FamilyControlsAgent"): Couldn’t communicate with a helper application.
 Attempts remaining: 1
Error for Family Controls: Error Domain=NSCocoaErrorDomain Code=4099 "The connection to service named com.apple.FamilyControlsAgent was invalidated: failed at lookup with error 159 - Sandbox restriction." UserInfo={NSDebugDescription=The connection to service named com.apple.FamilyControlsAgent was invalidated: failed at lookup with error 159 - Sandbox restriction.}

I tried creating another project myself and hit the same error. Not sure how to solve it. Did anyone encounter similar issue with DeviceActivityMonitor extension for iOS?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions