watchOS 8.1 Release Notes
Update your apps to use new features, and test your apps against API changes.
Overview
The watchOS 8 SDK provides support to develop watchOS apps for Apple Watch devices running watchOS 8.1. The SDK comes bundled with Xcode 13, available from the Mac App Store. For information on the compatibility requirements for Xcode 13, see Xcode 13 Release Notes.
CoreData
Known Issues
NSExpressionimmediately forbids certain operations that have significant side effects, like creating and destroying objects. Additionally, casting string class names into Class objects withNSConstantValueExpressionis deprecated. (84017178)Workaround: Pass temporary objects to
NSExpressionin the context parameter of expressionValue(with:context:), or withNSPredicateas thesubstitutionVariablesparameter of evaluate(with:substitutionVariables:). You can create a derived predicate with all the substitution variables replaced (bound), using withSubstitutionVariables(_:) on an existingNSPredicateso that code using the object can continue to use a simpleevaluate(with object: Any?)invocation.