In real-world scenarios, developers deal not with primitive types but with custom types that aggregate primitives. This chapter covers the topic of passing custom (aggregate) objects over XPC.
All objects passed over an NSXPC connection must conform to NSSecureCoding.
Apple provides such conforming for lots of classes such as NSString, NSURL, NSArray, NSImage, and so on.