What is possible with XPC on iOS?

After the XPC Updates from last year I am trying to understand what is possible with XPC on iOS. The documentation for XPCSession states it is available, but none of its initializers is. So how is one supposed to use it?

Answered by DTS Engineer in 798688022

AFAIK the only supported use case for XPC by third-party developers on iOS is when communicating with file provider extensions.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

Accepted Answer

AFAIK the only supported use case for XPC by third-party developers on iOS is when communicating with file provider extensions.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

You mean via the NSFileProviderService? I was not aware that this uses XPC under the hood.

Yes, and the NSFileProviderServiceSource protocol on the extension side. It’s not really an area I’ve explored in depth; I just saw the API go by.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

What is possible with XPC on iOS?
 
 
Q