0
當我爲Mac編譯Swift項目時,它編譯得很好,但是當我在Ubuntu 16.04中編譯相同的代碼時,出現以下錯誤。'Scanner'類型的值沒有成員'scanHexInt32'
value of type 'Scanner' has no member 'scanHexInt32'
if Scanner(string: self).scanHexInt32(&value) {
^~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~
Foundation.Scanner:8:17: note: did you mean 'scanHexInt'?
public func scanHexInt(_ result: UnsafeMutablePointer<UInt32>) -> Bool
會是什麼原因?