jenkins打模拟器包上传ftp的坑

1.xcodebuild: error: SDK "iphonesimulator11.3" cannot be located

原因:打包机器升级Xcode10导致找不到模拟器的sdk。
解决:Xcode10应该是“"iphonesimulator12.0",修改脚本中代码
参考链接:https://docs.travis-ci.com/user/reference/osx/

2.An SSH Transfer Set must not have an empty Source files and an empty Exec command - the transfer set should transfer files, execute a command or do both]

原因:需要SSH Publishers/Transfer Set Source files上传文件。查询资料说的是不填默认是根路径。但是现在不填是不行的无法上传到ftp
解决:Source files :build/Simulator_Num。 路径是相对工作区的路径(xcode工程下面建有bulid文件夹)
Remove prefix:build/。删除前缀,不删除每次都会创建一个build
Remote directory:iOS/Simulator。远程ftp文件路径

3.SSH: Transferred 0 file(s)

原因:配置的Transfer Set Source files路径不正确导致
解决:第二个问题配置好就解决这个问题

4.Exception when publishing, exception message [Out of disk space]

原因:ftp磁盘空间不足,导致上传不上去
解决:ftp服务器删除部分文件

几个问题重叠在一起解决起来确实头疼。最后理清楚才豁然开朗

你可能感兴趣的:(jenkins打模拟器包上传ftp的坑)