This article mentions "Supporting iOS 10 and Earlier"
The required iOS 9/10 compatibility code works fine on any iOS when the app is built with Xcode 8.
However with Xcode 9, the same code doesn't work on iOS 9 and 10, but does work on iOS 11.
iOS 9 & 10 device log errors:
Oct 3 17:14:43 ioss-iPad fileproviderd(Foundation)[21] <Notice>: calling plugIn beginUsing:
Oct 3 17:14:43 ioss-iPad fileproviderd(PlugInKit)[21] <Error>: plug-in <private> pre-screen sees activating state
Oct 3 17:14:43 ioss-iPad fileproviderd(PlugInKit)[21] <Notice>: connection to plug-in <private>(BBD75744-289E-41E9-A701-28B70E4DCD15) lost
Oct 3 17:14:43 ioss-iPad fileproviderd(PlugInKit)[21] <Error>: Hub connection error Error Domain=NSCocoaErrorDomain Code=4097 "connection to service named company.TestProvider.DocumentProviderFileProvider" UserInfo={NSDebugDescription=connection to service named company.TestProvider.DocumentProviderFileProvider}
Oct 3 17:14:43 ioss-iPad fileproviderd(Foundation)[21] <Notice>: PlugInKit error in beginUsing:
Oct 3 17:14:43 ioss-iPad fileproviderd[21] <Fault>: [ERROR] Extension request failed. Error: <private>
Oct 3 17:14:43 ioss-iPad fileproviderd(Foundation)[21] <Notice>: killing invalid plugIn
Oct 3 17:14:43 ioss-iPad fileproviderd[21] <Fault>: [ERROR] Error registering file provider extension <private>: <private>.
Oct 3 17:14:43 ioss-iPad fileproviderd[21] <Fault>: [ERROR] Could not register file provider <private>. Error: <private>
In Xcode 9 the File Provider framework has been moved from the UIKit framework to its own framework, and somehow this breaks it on compile level with iOS 9 & 10.
Has anyone been able to get a File Provider built with Xcode 9 working towards iOS 9 or 10?