2014-12-18 10 views
0

내 프로젝트에 alamofire를 추가하려고하는데 문제가 있습니다. 내가 컴파일 할 수 없습니다 내 프로젝트에 파일을 추가하면Alamofire.swift 가져 오기가 작동하지 않습니다.

, 내가 얻을 오류는 다음과 같습니다

Alamofire.swift:106:26: 'Method' cannot be constructed because it has no accessible initializers 
Alamofire.swift:156:130: 'CFStringBuiltInEncodings' does not have a member named 'rawValue' 
Alamofire.swift:245:61: Bound value in a conditional binding must be of Optional type 
Alamofire.swift:1290:90: Operand of postfix '?' should have optional type; type is 'NSString' 
Alamofire.swift:1453:82: Operand of postfix '!' should have optional type; type is 'NSURL' 
+0

설치 https : // github에 대한 설치 설명을 따르십시오. co.kr/Alamofire/Alamofire? alamofire를 사용하는 것이 중요합니다. –

답변

2

당신이 중 하나 Alamofire의 이전 버전 또는 엑스 코드의 이전 버전을 사용하고 있는지 나타납니다 . 최신 (마스터 헤드 또는 Alamofire와 Xcode 6.1.1 또는 6.2.0 Beta 2의 경우 1.1.2)으로 업데이트되었는지 확인하십시오.

+0

감사합니다. 6.1.1 대신 Xcode 6.0을 사용하고있었습니다. – user1804604

관련 문제