在xcode 9上清理构建失败

时间:2017-10-26 11:59:21

标签: ios swift xcode9 cleanse

我尝试使用Cleanse依赖注入器在xcode 9,swift 3.2版上构建我的遗留代码,但static func configure<B: Binder>(binder: Binder)函数出现以下错误:

  

对泛型类型'Binder'的引用需要&lt; ...&gt;

中的参数

我尝试了所有的分支和提交。你推荐什么?

2 个答案:

答案 0 :(得分:0)

语法似乎已经改变

func configure<B : Binder>(binder binder: B) {
       // Will fill out contents later
   }
     

https://github.com/square/Cleanse

答案 1 :(得分:0)

正确的语法如下:

IOrderedQueryable

您可以在此处查看示例: https://doc.scrapy.org/en/latest/intro/tutorial.html