在Xcode 7 beta 4中尝试获取系统版本时出现编译错误
当我尝试获取系统版本时,出现以下错误在Xcode 7 beta 4中尝试获取系统版本时出现编译错误,xcode,swift2,ios9,Xcode,Swift2,Ios9,当我尝试获取系统版本时,出现以下错误 //let Device = UIDevice.currentDevice() //this line also cause a compilation error let iosVersion = NSString(string: Device.systemVersion).doubleValue 命令/Applications/Xcode-beta.app/Contents/Developer/Toolchains/xcodefault.xctoo
//let Device = UIDevice.currentDevice() //this line also cause a compilation error
let iosVersion = NSString(string: Device.systemVersion).doubleValue
命令/Applications/Xcode-beta.app/Contents/Developer/Toolchains/xcodefault.xctoolchain/usr/bin/swiftc失败,退出代码为1
let theDevice = UIDevice.currentDevice().systemVersion
这将为您提供9.0.1,例如ios 9.01您是如何发现错误连接到该命令的?