Hello,
I'm developing an iOS app which has an ability to upload user photos, and I'm using a Background processing task to perform such an operation. The app also has File provider extension, which is involved in the process
Whenever the background task is launched, the following actions are performed:
- Main app fetches new items from PHAsset library and copies them to our file storage
- File Provider extension uploads those items to a cloud storage
Everything goes fine until Extension tries to perform a network request, at this point I'm getting the following error:
(501) got error from remote proxy: Error Domain=NSCocoaErrorDomain Code=4099 "The connection to service named com.apple.mobile.usermanagerd.xpc was invalidated: failed at lookup with error 159 - Sandbox restriction." UserInfo={NSDebugDescription=The connection to service named com.apple.mobile.usermanagerd.xpc was invalidated: failed at lookup with error 159 - Sandbox restriction.}
App has all the required entitlements and extension and main app has also the same app group. What is wrong with this that causes this error?