Skip to content

CoreFoundation macOS xcode15.0 b2

Manuel de la Pena edited this page Aug 26, 2023 · 3 revisions

#CoreFoundation.framework https://github.com/xamarin/xamarin-macios/pull/18839

diff -ruN /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFBundle.h /Applications/Xcode_15.0.0-beta2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFBundle.h
--- /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFBundle.h	2023-05-19 21:02:06
+++ /Applications/Xcode_15.0.0-beta2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFBundle.h	2023-06-14 00:14:32
@@ -12,7 +12,7 @@
 #include <CoreFoundation/CFString.h>
 #include <CoreFoundation/CFURL.h>
 
-#if TARGET_OS_MAC
+#if TARGET_OS_MAC && (!0 || !0)
 #include <mach/machine.h>
 #endif
 
@@ -302,7 +302,7 @@
     /* app to ship versions of the tool for each platform as it does for the */
     /* main app executable. */
 
-#if TARGET_OS_MAC
+#if TARGET_OS_MAC && (!0 || !0)
 CF_EXPORT
 Boolean CFBundleIsExecutableLoadable(CFBundleRef bundle) API_AVAILABLE(macos(11.0)) API_UNAVAILABLE(ios, watchos, tvos);
 
@@ -311,7 +311,7 @@
 
 CF_EXPORT
 Boolean CFBundleIsArchitectureLoadable(cpu_type_t arch) API_AVAILABLE(macos(11.0)) API_UNAVAILABLE(ios, watchos, tvos);
-#endif
+#endif 
 
 /* ==================== Getting a bundle's plugIn ==================== */
 
diff -ruN /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFURL.h /Applications/Xcode_15.0.0-beta2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFURL.h
--- /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFURL.h	2023-05-19 21:08:35
+++ /Applications/Xcode_15.0.0-beta2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFURL.h	2023-06-10 04:10:44
@@ -490,6 +490,7 @@
 #endif
 
 #if TARGET_OS_MAC || CF_BUILDING_CF || NSBUILDINGFOUNDATION || DEPLOYMENT_TARGET_SWIFT
+#if (!0 || !0)
 CF_IMPLICIT_BRIDGING_DISABLED
 
 /* Resource access
@@ -1269,17 +1270,18 @@
 
 CF_IMPLICIT_BRIDGING_ENABLED
 
-/* Given a CFURLRef created by resolving a bookmark data created with security scope, make the resource referenced by the url accessible to the process. When access to this resource is no longer needed the client must call CFURLStopAccessingSecurityScopedResource(). Each call to CFURLStartAccessingSecurityScopedResource() must be balanced with a call to CFURLStopAccessingSecurityScopedResource() (Note: this is not reference counted).
+/* Given a CFURLRef created by resolving a bookmark data created with security scope, make the resource referenced by the url accessible to the process. Each call to CFURLStartAccessingSecurityScopedResource that returns true must be balanced with a call to CFURLStopAccessingSecurityScopedResource when access to this resource is no longer needed by the client. Calls to start and stop accessing the resource are reference counted and may be nested, which allows the pair of calls to be logically scoped.
  */
 CF_EXPORT
 Boolean CFURLStartAccessingSecurityScopedResource(CFURLRef url) API_AVAILABLE(macos(10.7), ios(8.0), watchos(2.0), tvos(9.0)); // On OSX, available in MacOS X 10.7.3 and later
 
-/* Revokes the access granted to the url by a prior successful call to CFURLStartAccessingSecurityScopedResource().
+/* Removes one "accessing" reference to the security scope. When all references are removed, it revokes the access granted to the url by the initial prior successful call to CFURLStartAccessingSecurityScopedResource().
  */
 CF_EXPORT
 void CFURLStopAccessingSecurityScopedResource(CFURLRef url) API_AVAILABLE(macos(10.7), ios(8.0), watchos(2.0), tvos(9.0)); // On OSX, available in MacOS X 10.7.3 and later
 
 #endif /* !DEPLOYMENT_TARGET_SWIFT */
+#endif 
 #endif /* TARGET_OS_MAC || CF_BUILDING_CF || NSBUILDINGFOUNDATION || DEPLOYMENT_TARGET_SWIFT */
 
 CF_EXTERN_C_END
diff -ruN /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h /Applications/Xcode_15.0.0-beta2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h
--- /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h	2023-05-19 20:06:46
+++ /Applications/Xcode_15.0.0-beta2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h	2023-06-10 02:23:44
@@ -83,13 +83,13 @@
 #include <CoreFoundation/CFTimeZone.h>
 #endif
 #include <CoreFoundation/CFTree.h>
-#if (!0 || !0)
 #include <CoreFoundation/CFURL.h>
 #include <CoreFoundation/CFURLAccess.h>
+#if (!0 || !0)
 #include <CoreFoundation/CFUUID.h>
 #include <CoreFoundation/CFUtilities.h>
-#include <CoreFoundation/CFBundle.h>
 #endif
+#include <CoreFoundation/CFBundle.h>
 
 #if (TARGET_OS_OSX || TARGET_OS_IPHONE || TARGET_OS_WIN32) && (!0 || !0)
 #include <CoreFoundation/CFMessagePort.h>
Clone this wiki locally