我在XCode 6.4上。我尝试通过GIT和CocoaPods添加项目。
XCode无法通过100次错误和警告构建。
其他人看到这种行为?
示例:
/Pods/Alamofire/Source/Alamofire.swift:88:5: Extraneous '_' in parameter: 'URLString' has no keyword argument name
/Pods/Alamofire/Source/Alamofire.swift:120:5: Extraneous '_' in parameter: 'URLString' has no keyword argument name
/Pods/Alamofire/Source/Alamofire.swift:164:5: Extraneous '_' in parameter: 'URLString' has no keyword argument name
/Pods/Alamofire/Source/Alamofire.swift:198:5: Extraneous '_' in parameter: 'URLString' has no keyword argument name
/Pods/Alamofire/Source/Alamofire.swift:232:5: Extraneous '_' in parameter: 'URLString' has no keyword argument name
/Pods/Alamofire/Source/Alamofire.swift:267:5: Extraneous '_' in parameter: 'URLString' has no keyword argument name
/Pods/Alamofire/Source/Alamofire.swift:324:5: Extraneous '_' in parameter: 'URLString' has no keyword argument name
/Pods/Alamofire/Source/Download.swift:147:9: 'directory directory' can be expressed more succinctly as '#directory'
/Pods/Alamofire/Source/Download.swift:200:24: Consecutive statements on a line must be separated by ';'
/Pods/Alamofire/Source/Download.swift:201:19: Expected 'while' in 'do-while' loop
/Pods/Alamofire/Source/Download.swift:201:25: Braced block of statements is an unused closure
/Pods/Alamofire/Source/Manager.swift:135:18: Consecutive statements on a line must be separated by ';'
/Pods/Alamofire/Source/Manager.swift:135:40: Consecutive statements on a line must be separated by ';'
/Pods/Alamofire/Source/Manager.swift:135:41: Expected expression
/Pods/Alamofire/Source/MultipartFormData.swift:62:34: 'boundaryType boundaryType' can be expressed more succinctly as '#boundaryType'
/Pods/Alamofire/Source/MultipartFormData.swift:141:32: 'data data' can be expressed more succinctly as '#data'
/Pods/Alamofire/Source/MultipartFormData.swift:163:32: 'data data' can be expressed more succinctly as '#data'
/Pods/Alamofire/Source/MultipartFormData.swift:186:32: 'data data' can be expressed more succinctly as '#data'
/Pods/Alamofire/Source/MultipartFormData.swift:211:32: 'fileURL fileURL' can be expressed more succinctly as '#fileURL'
/Pods/Alamofire/Source/MultipartFormData.swift:239:32: 'fileURL fileURL' can be expressed more succinctly as '#fileURL'
/Pods/Alamofire/Source/MultipartFormData.swift:246:14: Consecutive statements on a line must be separated by ';'
/Pods/Alamofire/Source/MultipartFormData.swift:246:30: Consecutive statements on a line must be separated by ';'
/Pods/Alamofire/Source/MultipartFormData.swift:246:31: Expected expression
/Pods/Alamofire/Source/MultipartFormData.swift:246:36: Braced block of statements is an unused closure
/Pods/Alamofire/Source/MultipartFormData.swift:259:12: Expected expression, var, or let in 'if' condition
/Pods/Alamofire/Source/MultipartFormData.swift:259:37: Braced block of statements is an unused closure
/Pods/Alamofire/Source/MultipartFormData.swift:263:14: Consecutive statements on a line must be separated by ';'
/Pods/Alamofire/Source/MultipartFormData.swift:263:26: Consecutive statements on a line must be separated by ';'
/Pods/Alamofire/Source/MultipartFormData.swift:263:27: Expected expression
/Pods/Alamofire/Source/MultipartFormData.swift:263:32: Braced block of statements is an unused closure
/Pods/Alamofire/Source/MultipartFormData.swift:275:14: Consecutive statements on a line must be separated by ';'
/Pods/Alamofire/Source/MultipartFormData.swift:277:13: Expected expression
/Pods/Alamofire/Source/MultipartFormData.swift:278:9: Braced block of statements is an unused closure
/Pods/Alamofire/Source/MultipartFormData.swift:294:32: Expected '{' after 'if' condition
/Pods/Alamofire/Source/MultipartFormData.swift:295:13: Braced block of statements is an unused closure
/Pods/Alamofire/Source/MultipartFormData.swift:298:11: Expected 'while' in 'do-while' loop
/Pods/Alamofire/Source/MultipartFormData.swift:298:17: Braced block of statements is an unused closure
/Pods/Alamofire/Source/MultipartFormData.swift:302:14: Consecutive statements on a line must be separated by ';'
/Pods/Alamofire/Source/MultipartFormData.swift:302:45: Consecutive statements on a line must be separated by ';'
/Pods/Alamofire/Source/MultipartFormData.swift:302:46: Expected expression
/Pods/Alamofire/Source/MultipartFormData.swift:302:51: Braced block of statements is an unused closure
/Pods/Alamofire/Source/MultipartFormData.swift:313:14: Consecutive statements on a line must be separated by ';'
/Pods/Alamofire/Source/MultipartFormData.swift:313:55: Consecutive statements on a line must be separated by ';'
/Pods/Alamofire/Source/MultipartFormData.swift:313:56: Expected expression
/Pods/Alamofire/Source/MultipartFormData.swift:313:61: Braced block of statements is an unused closure
答案 0 :(得分:3)
我的猜测是您可能按照主Github页面上列出的说明进行操作,并在您的~> 2.0
中使用Podfile
。如果您查看requirements,您会发现它需要Xcode 7.0+等。我的建议是指定一个像~> 1.3
这样的旧版本,用于Podfile中的项目。您可以下载7个beta here并尝试一下,但之后您可能需要处理其余代码的语法问题。