我正在尝试设置Xcode机器人来执行我的CI操作。我已经完成了所有配置并测试了我与我正在处理的小应用程序的第一次集成,但构建失败并出现以下错误:
Bot Issue: error. Swift Compiler Error.
Issue: Incorrect argument label in call (have 'item:attribute:relatedBy:toItem:attribute:multiplier:constant:', expected 'item:attribute:relatedBy:.
File: UIView+Extensions.swift.
Integration Number: 1.
Integration URL: https://Jenkinss-Mac-mini.local/xcode/bots/CA86149/integrations
Description: Incorrect argument label in call (have 'item:attribute:relatedBy:toItem:attribute:multiplier:constant:', expected 'item:attribute:relatedBy:toItem:attribute:positiveSuffix:constant:').
这是有问题的代码:
public func AddConstraint(view: UIView?, layoutAttribute: NSLayoutAttribute, myLayoutAttribute: NSLayoutAttribute, offset: CGFloat = 0) -> NSLayoutConstraint
{
let attachView = view != nil ? view! : self.superview
let constraint = NSLayoutConstraint(item: self, attribute: myLayoutAttribute, relatedBy: NSLayoutRelation.Equal,
toItem: attachView, attribute: layoutAttribute, multiplier: 1, constant: offset)
self.superview?.addConstraint(constraint)
return constraint
}
但是,如果我从' 乘数'更改标签到' positiveSuffix '该项目不在本地建设?我有三重检查,我的服务器运行与我的开发机器(6A1052d)相同版本的Xcode。
关于我可以尝试解决这个问题的任何想法,我处于死胡同?