Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/fortran/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
在Xcode 7 beta 4中尝试获取系统版本时出现编译错误_Xcode_Swift2_Ios9 - Fatal编程技术网

在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

您是如何发现错误连接到该命令的?