文章有些长,若是您比较忙能够快速浏览下面的简单清单
Xcode 11.4 beta 带来了不少很棒的功能!网络
经过选择“文件”>“新建”>“文件”来建立Objective-C类别文件,将再也不建立包含AppKit框架导入的文件。 (55977950)(FB7346800)闭包
struct Adder { var base: Int func callAsFunction(_ x: Int) -> Int { return x + base } } var adder = Adder(base: 3) adder(10) // returns 13, same as adder.callAsFunction(10)
您能够在单个类型上添加多个func callAsFunction方法,而且能够将它们标记为变异。 func callAsFunction可用于引起和从新引起以及尾随闭包。 (59014791)app
struct Subscriptable { subscript(x: Int, y: Int = 0) { ... } } let s = Subscriptable() print(s[0])
protocol Foo {} class Bar: Foo { var someProperty: Int = 0 } // Even though 'Foo' does not impose a class constraint, it is automatically // inferred due to the Self: Bar constraint. extension Foo where Self: Bar { var anotherProperty: Int { get { return someProperty } // As a result, the setter is now implicitly nonmutating, just like it would // be if 'Foo' had a class constraint. set { someProperty = newValue } } }
protocol P {} class Base { func foo<T>(arg: T) {} } class Derived: Base { // generates an error because of the added requirement override func foo<T: P>(arg: T) {} }
构建设置具备一个新的评估运算符,即默认值,若是在评估的上下文中评估结果为nil,则可使用该运算符指定构建设置的默认值。例如:框架
$(SETTING:default=something)
若是$(SETTING)为空,则此表达式的计算结果为“something”。默认值自己能够是包含构建设置评估的表达式。 (57402718)编辑器
如今,要使用新的构建系统构建无代码内核扩展,须要将GENERATE_KERNEL_MODULE_INFO_FILE的构建设置设置为NO。 (57247534)ide
运行iOS 13.0的设备的图标和名称可能没法在“设备和模拟器”窗口中反映正确的OS版本。 (55044395)函数
解决办法:从新启动macOS。工具
$ xcrun simctl ui <device> appearance dark
已知的问题
在经过网络链接的设备上对应用程序进行性能分析时,Instruments可能会报告该设备不可用,代表它“正在等待Xcode从设备下载符号”。 (59169574)布局
解决办法:使用有线链接在设备上或在模拟设备上对应用程序进行配置文件配置。性能
为 inspector color pickers添加了动态系统灰色。 (55403376)(FB7281404)
删除了检查器对配置NSTableColumn标头单元格字体以匹配API的支持。您能够经过子类化NSTableHeaderCell并覆盖代码中的font属性来配置标题单元格字体。 (23664679)(FB5630174)
Xcode可能会因iOS弹出框而挂在某些故事板上。 (59070586)
解决方法:使用Shift从新打开Xcode。
当打开使用弹出式演示文稿的特定nib(UIKit的TestVectorLabelController.storyboard)时,Xcode可能崩溃。 (58421606)
解决方法:使用Shift从新打开Xcode。
https://developer.apple.com/download/
QQ:3365059189
SwiftUI技术交流QQ群:518696470