Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/ios/118.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
Ios Xcode:swiftc失败,退出代码为1_Ios_Swift2_Xcode7 - Fatal编程技术网

Ios Xcode:swiftc失败,退出代码为1

Ios Xcode:swiftc失败,退出代码为1,ios,swift2,xcode7,Ios,Swift2,Xcode7,我对此函数有问题: func isSmallDevice() -> Bool { if UIDevice().userInterfaceIdiom == .Phone { if UIScreen.mainScreen().nativeBounds.height <= 1136 { return true } } return false } func isSmallDevice()->Bool{ 如果U

我对此函数有问题:

func isSmallDevice() -> Bool {
    if UIDevice().userInterfaceIdiom == .Phone {
        if UIScreen.mainScreen().nativeBounds.height <= 1136 {
            return true
        }
    }
    return false
}
func isSmallDevice()->Bool{
如果UIDevice().userInterfaceIdiom==.Phone{

如果UIScreen.mainScreen()为.nativeBounds.height你在哪里调用它?同时尝试为>案例添加一个返回false我根本不调用它。尝试调用它,不会更改任何内容。你可以尝试深入清理你的项目,这可能会有所帮助-你可以参考此内容,我在你的代码中未发现任何问题同一问题多次退出我的xcode,甚至删除e导出数据,但没有帮助。