在添加我的应用程序的引用时尝试进行单元测试会引发错误。
有效负载包含两个或多个文件,这些文件具有相同的目标路径“ Properties \ Default.rd.xml”。源文件:
protocol Info {
var name: String { get }
var serial: Int { get }
}
struct Person: Info, CustomStringConvertible { // notice that Person now conforms to CustomStringConvertible
var name = ""
var serial = 0
}
// the extension only applies to objects that themselves conform to CustomStringConvertible
extension Info where Self: CustomStringConvertible {
var description: String {
return "\(name) + \(serial)"
}
}
因此,我将D:\Test\MyAppTesting\Properties\Default.rd.xml
D:\Test\MyApp\Properties\Default.rd.xml
构建操作更改为无。
现在这就是输出窗口中显示的内容 Output window
我的测试未运行