当我为 Mac 编译我的 Swift 项目时,它编译得很好,但是当我在 Ubuntu 16.04 中编译相同的代码时,我得到了以下错误。
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
原因是什么?