-
Notifications
You must be signed in to change notification settings - Fork 519
FileProvider macOS xcode16.3 b2
Rolf Bjarne Kvinge edited this page Mar 6, 2025
·
1 revision
#FileProvider.framework
diff -ruN /Applications/Xcode_16.3.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/FileProvider.framework/Headers/NSFileProviderDefines.h /Applications/Xcode_16.3.0-beta2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/FileProvider.framework/Headers/NSFileProviderDefines.h
--- /Applications/Xcode_16.3.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/FileProvider.framework/Headers/NSFileProviderDefines.h 2025-02-07 21:45:30
+++ /Applications/Xcode_16.3.0-beta2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/FileProvider.framework/Headers/NSFileProviderDefines.h 2025-02-25 06:21:51
@@ -46,3 +46,4 @@
#define FILEPROVIDER_API_AVAILABILITY_DESKTOP API_AVAILABLE(macos(15.0)) API_UNAVAILABLE(watchos, tvos) API_UNAVAILABLE(ios, macCatalyst)
#define FILEPROVIDER_API_AVAILABILITY_V8_0_IOS API_AVAILABLE(macos(15.0), ios(18.0)) API_UNAVAILABLE(watchos, tvos) API_UNAVAILABLE(macCatalyst)
+#define FILEPROVIDER_API_AVAILABILITY_FEEDBACK API_AVAILABLE(macos(15.4)) API_UNAVAILABLE(watchos, tvos) API_UNAVAILABLE(ios, macCatalyst)
diff -ruN /Applications/Xcode_16.3.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/FileProvider.framework/Headers/NSFileProviderManager.h /Applications/Xcode_16.3.0-beta2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/FileProvider.framework/Headers/NSFileProviderManager.h
--- /Applications/Xcode_16.3.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/FileProvider.framework/Headers/NSFileProviderManager.h 2025-02-07 21:45:30
+++ /Applications/Xcode_16.3.0-beta2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/FileProvider.framework/Headers/NSFileProviderManager.h 2025-02-25 05:45:17
@@ -632,4 +632,38 @@
error:(NSError *_Nullable *_Nullable)error NS_REFINED_FOR_SWIFT FILEPROVIDER_API_AVAILABILITY_EXTERNAL_VOLUME;
@end
+@interface NSFileProviderManager (Diagnostics)
+
+/**
+ Request diagnostics collection for the item.
+
+ This will prompt the user about an issue with the sync in the provider and ask their permission
+ to collection diagnostic information and to send them to Apple for further analysis.
+
+ This call is to be used wisely with care given there's global throttling on it preventing
+ spamming the users. Furthermore it should be used in collaboration with Apple when you
+ detect a misbehavior in the sync in your provider likely caused by a system bug and you need to
+ work with Apple in order to resolve it.
+
+ This will return whether the call was allowed or not - not if it suceed
+ This method will only return an error if the user was not on a Seed build
+
+ It is mandatory to provide an error for the item why the collection is requested.
+ The error won't be shown to the user (a generic message will be shown instead)
+ It will surface in the generated report though
+
+ It is important to note that even if the call is allowed, it might not trigger diagnostic collection
+ nor prompt to the user depending on the system state and other throttling parameters
+
+ If the call is allowed, the system will return an UUID that allows to uniqly identify the
+ diagnostics attempt. The UUID not being nil doesn't guarantee the collection happened
+ */
+- (void)requestDiagnosticCollectionForItemWithIdentifier:(NSFileProviderItemIdentifier)itemIdentifier
+ errorReason:(NSError *)errorReason
+ completionHandler:(void (^)(NSError * _Nullable error))completionHandler
+ NS_SWIFT_NAME(requestDiagnosticCollection(for:errorReason:completionHandler:))
+ FILEPROVIDER_API_AVAILABILITY_FEEDBACK;
+
+@end
+
NS_ASSUME_NONNULL_END