Any File Provider built with Xcode 9 cannot launch on iOS 9 and 10

This article mentions "Supporting iOS 10 and Earlier"


https://developer.apple.com/documentation/fileprovider/creating_file_providers_for_multiple_versions_of_ios


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?

What is your deployment target (minimum iOS version) set to? It looks like this can be an issue is it is set to anything older than 8.0


Please file a radar at http://bugreport.apple.com and reference the radar number here.

BTW, I filed a radar on your behalf: <rdar://problem/34828118>.


Hopefully bumping your deployment target is ok as a workaround for now.

Any File Provider built with Xcode 9 cannot launch on iOS 9 and 10
 
 
Q