Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/ios/102.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 由于CompileSwift build命令失败,Travis CI生成失败_Ios_Xcode_Travis Ci - Fatal编程技术网

Ios 由于CompileSwift build命令失败,Travis CI生成失败

Ios 由于CompileSwift build命令失败,Travis CI生成失败,ios,xcode,travis-ci,Ios,Xcode,Travis Ci,在Travis CI上构建iOS项目时,我遇到多个构建命令失败,如:- **测试失败: 使用未声明的类型“SomeClassCancelDelegate” 使用未声明的类型“SomeClassPaymentCell” 使用未声明的类型“SomeClassPaymentCell” 使用未解析标识符“SomeViewController” 命令CompileSwift失败,退出代码为非零 测试已取消,因为生成失败** **测试失败** 以下生成命令失败: 编译Wift normal x86_64/U

在Travis CI上构建iOS项目时,我遇到多个构建命令失败,如:-

**测试失败: 使用未声明的类型“SomeClassCancelDelegate”

使用未声明的类型“SomeClassPaymentCell”

使用未声明的类型“SomeClassPaymentCell”

使用未解析标识符“SomeViewController”

命令CompileSwift失败,退出代码为非零

测试已取消,因为生成失败**

**测试失败**

以下生成命令失败: 编译Wift normal x86_64/Users/travis/build/some Group/some Project ios/Modules/SubModules/some ViewControllerExtensions.swift

有没有一种方法可以配置.yml文件,这样Travis就可以忽略这些失败并让构建成功


非常感谢您的帮助

最终解决了这个问题,这是项目的单元测试用例的问题。在执行build命令时,单元测试也会得到构建,在我的例子中,构建失败了,因此,整个构建都失败了