Xcode 10 1 新特性及解決的問題

2021-09-11 11:16:18 字數 1764 閱讀 5900

距離xcode 10.1正式版發布已經將近乙個月了,我們今天重新來回顧一下xcode 10.1的新特性,以及已解決的問題和存在的問題。

接下來我們將以新特性(new features)、已解決的問題(resolved issues)、已知問題(known issues)等幾方面來介紹 xcode 10.1 在各模組上的更新。

新特性已解決的問題

已解決的問題

已知問題

已解決的問題已解決的問題新特性已解決的問題新特性

已解決的問題已知問題

*臨時解決方案:*退出並重新啟動模擬器。要在不關閉所有模擬器的情況下退出,請先按住 option 鍵並選擇 simulator > quit simulator…,然後在出現的對話方塊中選擇 "keep running"。

已知問題

例如:

protocol

someprotocol

class

someclass: someprotocol

extension

someprotocol

get

}}// might be miscompiled, deallocating someclass() too early.

someclass().somenonmutatingproperty.x = 42

複製**

*臨時解決方案:*將該操作分解為多個語句,以便 get 和 set 操作在不同的語句中發生:

let someobject = someclass()

// first get the nonmutating property value.

var temp = someobject.somenonmutatingproperty

temp.x = 42

// then modify it.

someobject.somenonmutatingproperty = temp

複製**

已解決的問題
class

afunc

takefunction

(_: (int)

-> int) {}

func

passfunction

(from a: a)

複製**

protocol

example

func

foo(x: inout example)

複製**

func

f(_: [anyobject])

f([nsobject.self, nsstring.self])

複製**

已解決的問題

這些方法在溢位條件下會產生未定義的行為。因此在算術運算的情況下,可以使用assertaddingreportingoverflow(_:)方法或者&+運算子的組合,這兩者都會在溢位的情況下有明確定義的結果。

已解決的問題已知問題

*臨時解決方案:*當進行分析測試時可以通過如下方式禁用並行測試:在 xcode 選單欄中開啟 product > scheme > edit scheme... > test > info,選擇測試 target 旁邊的 "options" 按鈕,然後禁用 "execute in parallet" 核取方塊。

已解決的問題

Xcode 10 1 新特性及解決的問題

距離xcode 10.1正式版發布已經將近乙個月了,我們今天重新來回顧一下xcode 10.1的新特性,以及已解決的問題和存在的問題。接下來我們將以新特性 new features 已解決的問題 resolved issues 已知問題 known issues 等幾方面來介紹 xcode 10.1...

更新Xcode10 1後碰到的問題

更新xcode10.1後碰到的問題 ios12.1 1.that command depends on command in target lottery script phase cp copy pods resources 我公升級前pod的版本是1.1.1,公升級後是1.5.3,完美解決問題 ...

細數Xcode 6 給我們帶來的新特性

引言 9月9號,蘋果產品發布會結束後,同時對開發者發布xcode 6 gm版本,gm版本雖是測試版的含義,但對於蘋果來說,等於95 的正式版。所以,通過gm版本可以開始進行ios8的相容和iphone 6 和iphone 6 plus的適配。本篇想來細數細數在新版本中都有哪些新增和改變 正文 1 模...