6.Core ML
Deprecations
The default initializer on the auto-generated model interface has been deprecated in favor of init(configuration:). Use init(configuration:) or the newly introduced .load() method and handle model load errors as appropriate. (64432588)
机器学习
弃用
自动生成的模型接口上的默认初始值设定项已被弃用,取而代之的是init(configuration:)。使用init(configuration:)或新引入的.load()方法并根据需要处理模型加载错误。
7.Fonts
Known Issues
Beginning in iOS & iPadOS 14, fonts installed using configuration profiles are only available to apps supporting the font APIs and entitlements introduced in iOS & iPadOS 13. If your app provides a custom font-selection interface, it can no longer access fonts installed via configuration profiles. For reference, see the WWDC 2019 Session Font Management and Text Scaling (55317428)
字体,已知问题
从iOS和iPadOS 14开始,使用配置文件安装的字体仅适用于支持iOS和iPadOS 13中引入的字体API和授权的应用程序。如果您的应用程序提供自定义字体选择界面,它将无法再访问通过配置文件安装的字体。有关参考,请参阅WWDC 2019大会 Font Management and Text Scaling
8.HealthKit
New Features
New data types are available to track mobility metrics including walking speed, step length, double-support percentage, and more. (56387364)
HKElectrocardiogram enables reading electrocardiogram voltage data and classifications recorded by Apple Watch. (56396806)
健康APP 新特性
新的数据类型可用于跟踪移动指标,包括步行速度、步长、双支撑百分比等
HKElectrocardiogram可以读取苹果手表记录的心电图电压数据和分类
9.Home Screen
Known Issues
Spotlight might not appear as expected. (64121178)
Workaround: Restart your device.
桌面,已知问题
聚光灯可能不会像预期的那样出现。
解决方法:重新启动设备。
10.Key-Value Observing
New Features
Key-Value Observation removal facilities now employ deterministic bookkeeping methods. Cases that would have produced hard-to-diagnose crashes, especially those where KVO signals problems accessing deallocated observer pointers or observers associated with incorrect objects, now produce an exception that pinpoints which observed object needs a missed removeObserver(_:) call, and by which observers. This exception was previously thrown as ‘best effort’ when KVO could detect the problem; the new deterministic bookkeeping allows it to be thrown for all cases where removeObserver(_:) is needed.
The improved determinism also allows improved Swift API handling. Instances of NSKeyValueObservation, produced by the Swift NSObject.observe(_:changeHandler:) method, take advantage of integration with this bookkeeping so they now invalidate automatically when the observed object is released, regardless of how the object implements its KVO behavior. This applies to all usage of this API in macOS 11 Big Sur beta, including on processes built with previous versions of the SDK, and eliminates certain classes of crashes that sometimes required using the legacy API instead. (65051563)
KVO,新特性
KVO移除设施现在采用确定性簿记方法。本来会产生难以诊断的崩溃的情况,尤其是KVO在访问释放的观察者指针或与不正确对象关联的观察者时出现问题的情况,现在会产生一个异常,指出哪些观察对象需要错过removeObserver(:)调用,以及哪些观察者。当KVO可以检测到问题时,这个异常先前被作为“最大努力”抛出;新的确定性簿记允许在需要removeObserver(:)的所有情况下抛出它
改进的确定性还允许改进Swift API处理。由Swift生成的NSKeyValueObservation实例NSObject.观察方法,利用与此簿记的集成,因此,无论对象如何实现其KVO行为,它们现在在被观察对象被释放时自动失效。这适用于macos11big-Sur-beta中对该API的所有使用,包括在使用以前版本的SDK构建的进程上,并消除了某些类型的崩溃,这些崩溃有时需要使用旧API
11.Localization
New Features
Three Simplified Chinese Wubi input methods are now supported: Wubi 86, Wubi 98, and Wubi New Century. (56277474)
QuickPath now supports swiping English words on the Simplified Chinese Pinyin keyboard. (56314466)
Typing numbers using the Japanese Kana keyboard has been significantly enhanced. (56285976)
CarPlay keyboard support has been added for over 100 additional languages. (56791047)
Irish Gaelic and Norwegian Nynorsk keyboards now support Auto-Correction. (53156919, 48183197)
定位 新特性
现在支持三种简体中文五笔输入法:五笔86、五笔98和五笔新世纪
QuickPath现在支持在简体中文拼音键盘上拼写英文单词
使用日文假名键盘键入数字的功能得到了显著增强
CarPlay键盘支持已经增加了100多种语言
爱尔兰盖尔语和挪威尼诺斯克键盘现在支持自动更正
12.Logging
New Features
New APIs are available for using os_log from Swift as part of the framework os:
A new type, Logger, can be instantiated using a subsystem and category and provides methods for logging at different levels (Logger.debug, Logger.error, Logger.fault).
The Logger APIs support specifying most formatting and privacy options supported by legacy Logging APIs.
The new APIs provide significant performance improvements over the legacy APIs.
You can now pass Swift string interpolation to the os_log function.
Note: The new APIs can’t be back deployed; however, the existing os_log API remains available for back deployment. (22539144)
日志,新特性
作为框架操作系统的一部分,可以使用Swift提供的os_log的新api:
新类型Logger可以使用子系统和类别实例化,并提供不同级别的日志记录方法(Logger.debug, 记录器.错误, 记录器故障).
Logger api支持指定传统日志api支持的大多数格式和隐私选项。
与传统api相比,新api提供了显著的性能改进。
现在可以将Swift字符串插值传递给os_log函数。
注意:新的API不能被后部署;但是,现有的os_log API仍然可以用于后部署
网友评论