Skip to content

Foundation tvOS xcode26.4 b2

Rolf Bjarne Kvinge edited this page Feb 27, 2026 · 1 revision

#Foundation.framework

diff -ruN /Applications/Xcode_26.3.0.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h /Applications/Xcode_26.4.0-beta2.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h
--- /Applications/Xcode_26.3.0.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h	2025-11-09 04:32:18
+++ /Applications/Xcode_26.4.0-beta2.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h	2026-02-16 08:40:27
@@ -134,6 +134,7 @@
 #import <Foundation/NSUserActivity.h>
 
 #import <Foundation/NSUUID.h>
+#import <Foundation/NSPredicateValidating.h>
 
 #endif /* TARGET_OS_OSX || TARGET_OS_IPHONE */
 
diff -ruN /Applications/Xcode_26.3.0.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSObjCRuntime.h /Applications/Xcode_26.4.0-beta2.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSObjCRuntime.h
--- /Applications/Xcode_26.3.0.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSObjCRuntime.h	2025-11-09 03:56:52
+++ /Applications/Xcode_26.4.0-beta2.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSObjCRuntime.h	2026-02-16 05:59:06
@@ -246,10 +246,11 @@
 #  define NS_SWIFT_ASYNC_NAME(NAME)
 #endif
 #if __has_attribute(swift_attr)
-#  define NS_SWIFT_UI_ACTOR __attribute__((swift_attr("@UIActor")))
+#  define NS_SWIFT_MAIN_ACTOR __attribute__((swift_attr("@MainActor")))
 #else
-#  define NS_SWIFT_UI_ACTOR
+#  define NS_SWIFT_MAIN_ACTOR
 #endif
+#define NS_SWIFT_UI_ACTOR NS_SWIFT_MAIN_ACTOR
 #if __has_attribute(swift_async_error)
 #  define NS_SWIFT_ASYNC_NOTHROW __attribute__((swift_async_error(none)))
 #  define NS_SWIFT_ASYNC_THROWS_ON_TRUE(TRUE_PARAMETER_INDEX) __attribute__((swift_async_error(nonzero_argument, TRUE_PARAMETER_INDEX)))
diff -ruN /Applications/Xcode_26.3.0.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSPredicate.h /Applications/Xcode_26.4.0-beta2.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSPredicate.h
--- /Applications/Xcode_26.3.0.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSPredicate.h	2025-11-09 03:56:51
+++ /Applications/Xcode_26.4.0-beta2.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSPredicate.h	2026-02-16 08:40:33
@@ -8,6 +8,7 @@
 #import <Foundation/NSOrderedSet.h>
 
 @class NSDictionary <KeyType, ObjectType>, NSString;
+@protocol NSPredicateValidating;
 
 NS_HEADER_AUDIT_BEGIN(nullability, sendability)
 
@@ -44,6 +45,8 @@
 - (BOOL)evaluateWithObject:(nullable id)object substitutionVariables:(nullable NSDictionary<NSString *, id> *)bindings API_AVAILABLE(macos(10.5), ios(3.0), watchos(2.0), tvos(9.0)); // single pass evaluation substituting variables from the bindings dictionary for any variable expressions encountered
 
 - (void)allowEvaluation API_AVAILABLE(macos(10.9), ios(7.0), watchos(2.0), tvos(9.0)); // Force a predicate which was securely decoded to allow evaluation
+- (BOOL)allowEvaluationWithValidator:(id<NSPredicateValidating>)validator
+                               error:(NSError * _Nullable *)error NS_SWIFT_NAME(allowEvaluation(validator:)) API_AVAILABLE(macosx(26.4),ios(26.4),tvos(26.4),watchos(26.4),visionos(26.4));
 
 @end
 
diff -ruN /Applications/Xcode_26.3.0.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSPredicateValidating.h /Applications/Xcode_26.4.0-beta2.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSPredicateValidating.h
--- /Applications/Xcode_26.3.0.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSPredicateValidating.h	1970-01-01 01:00:00
+++ /Applications/Xcode_26.4.0-beta2.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSPredicateValidating.h	2026-02-16 05:48:23
@@ -0,0 +1,33 @@
+//
+//  NSPredicateValidating.h
+//  Foundation
+//
+//  Copyright (c) 2026, Apple Inc.
+//  All rights reserved.
+//
+
+#import <Foundation/NSComparisonPredicate.h>
+#import <Foundation/NSError.h>
+#import <Foundation/NSExpression.h>
+#import <Foundation/NSPredicate.h>
+
+NS_ASSUME_NONNULL_BEGIN
+
+API_AVAILABLE(macos(26.4), ios(26.4), watchos(26.4), tvos(26.4))
+@protocol NSPredicateValidating <NSObject>
+
+@optional
+- (BOOL)visitPredicate:(NSPredicate *)predicate
+                 error:(NSError **)error;
+- (BOOL)visitExpression:(NSExpression *)expression
+                  error:(NSError **)error;
+- (BOOL)visitOperatorType:(NSPredicateOperatorType)operatorType
+                    error:(NSError **)error;
+- (BOOL)visitExpressionKeyPath:(NSExpression *)expression
+                         scope:(NSString * _Nullable)scope
+                           key:(NSString * _Nullable)key
+                         error:(NSError **)error;
+
+@end
+
+NS_ASSUME_NONNULL_END

Clone this wiki locally