Я как бы новый для быстрого и xCode вообще, я установил Cocoapods и новый проект xcode.Alamofire с использованием CocoaPods и xcode 6.3
Мне удалось добавить другие библиотеки, но когда я пытаюсь загрузить библиотеку alamofire, я получаю около 48 ошибок.
мой Podfile выглядит следующим образом:
source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '8.0'
use_frameworks!
pod 'TwilioSDK'
pod 'Alamofire', '~> 1.2'
Когда я пытаюсь построить приложение я получаю следующее:
/****/Pods/Alamofire/Source/Alamofire.swift
/****/Pods/Alamofire/Source/Alamofire.swift:82:93: Expected type after 'as'
/****/Pods/Alamofire/Source/Alamofire.swift:222:19: Static properties are only allowed within structs and enums; use 'class' to declare a class property
/****/Pods/Alamofire/Source/Alamofire.swift:234:19: Static properties are only allowed within structs and enums; use 'class' to declare a class property
/****/Pods/Alamofire/Source/Alamofire.swift:241:84: Expected type after 'as'
/****/Pods/Alamofire/Source/Alamofire.swift:241:84: Expected ',' separator
/****/Pods/Alamofire/Source/Alamofire.swift:241:84: Expected expression in list of expressions
/****/Pods/Alamofire/Source/Alamofire.swift:263:59: Expected type after 'as'
/****/Pods/Alamofire/Source/Alamofire.swift:268:10: Consecutive statements on a line must be separated by ';'
/****/Pods/Alamofire/Source/Alamofire.swift:821:61: Expected type after 'as'
/****/Pods/Alamofire/Source/Alamofire.swift:937:43: Expected '{' after 'if' condition
/****/Pods/Alamofire/Source/Alamofire.swift:939:13: Braced block of statements is an unused closure
/****/Pods/Alamofire/Source/Alamofire.swift:942:14: Consecutive statements on a line must be separated by ';'
/****/Pods/Alamofire/Source/Alamofire.swift:942:15: Expected expression
/****/Pods/Alamofire/Source/Alamofire.swift:942:20: Braced block of statements is an unused closure
/****/Pods/Alamofire/Source/Alamofire.swift:968:59: Expected '{' after 'if' condition
/****/Pods/Alamofire/Source/Alamofire.swift:972:70: Expected '{' after 'if' condition
/****/Pods/Alamofire/Source/Alamofire.swift:1141:65: Expected type after 'as'
/****/Pods/Alamofire/Source/Alamofire.swift:1176:65: Expected type after 'as'
/****/Pods/Alamofire/Source/Alamofire.swift:1176:65: Expected ',' separator
/****/Pods/Alamofire/Source/Alamofire.swift:1176:65: Expected expression in list of expressions
/****/Pods/Alamofire/Source/Alamofire.swift:1260:69: Expected type after 'as'
/****/Pods/Alamofire/Source/Alamofire.swift:1335:67: Expected type after 'as'
/****/Pods/Alamofire/Source/Alamofire.swift:1335:67: Expected ',' separator
/****/Pods/Alamofire/Source/Alamofire.swift:1335:67: Expected expression in list of expressions
/****/Pods/Alamofire/Source/Alamofire.swift:1348:71: Expected '{' after 'if' condition
/****/Pods/Alamofire/Source/Alamofire.swift:1351:9: Braced block of statements is an unused closure
/****/Pods/Alamofire/Source/Alamofire.swift:1379:43: Expected '{' after 'if' condition
/****/Pods/Alamofire/Source/Alamofire.swift:1381:9: Braced block of statements is an unused closure
/****/Pods/Alamofire/Source/Alamofire.swift:222:12: Static variables not yet supported
/****/Pods/Alamofire/Source/Alamofire.swift:234:12: Static variables not yet supported
/****/Pods/Alamofire/Source/Alamofire.swift:241:51: Type '()' does not conform to protocol 'SequenceType'
/****/Pods/Alamofire/Source/Alamofire.swift:253:33: Function produces expected type 'String'; did you mean to call it with '()'?
/****/Pods/Alamofire/Source/Alamofire.swift:106:43: Use of unresolved identifier 'mutableURLRequest'
/****/Pods/Alamofire/Source/Alamofire.swift:122:17: Use of unresolved identifier 'mutableURLRequest'
/****/Pods/Alamofire/Source/Alamofire.swift:123:17: Use of unresolved identifier 'mutableURLRequest'
/****/Pods/Alamofire/Source/Alamofire.swift:127:17: Use of unresolved identifier 'mutableURLRequest'
/****/Pods/Alamofire/Source/Alamofire.swift:128:17: Use of unresolved identifier 'mutableURLRequest'
/****/Pods/Alamofire/Source/Alamofire.swift:131:28: Use of unresolved identifier 'mutableURLRequest'
/****/Pods/Alamofire/Source/Alamofire.swift:134:17: Use of unresolved identifier 'mutableURLRequest'
/****/Pods/Alamofire/Source/Alamofire.swift:190:19: Operand of postfix '!' should have optional type; type is 'NSURL'
/****/Pods/Alamofire/Source/Alamofire.swift:939:13: Type of expression is ambiguous without more context
/****/Pods/Alamofire/Source/Alamofire.swift:942:20: Type of expression is ambiguous without more context
/****/Pods/Alamofire/Source/Alamofire.swift:970:13: Type of expression is ambiguous without more context
/****/Pods/Alamofire/Source/Alamofire.swift:1312:38: Operand of postfix '!' should have optional type; type is 'NSURL'
/****/Pods/Alamofire/Source/Alamofire.swift:1333:65: Operand of postfix '!' should have optional type; type is 'NSURL'
/****/Pods/Alamofire/Source/Alamofire.swift:1351:9: Type of expression is ambiguous without more context
/****/Pods/Alamofire/Source/Alamofire.swift:1382:39: Use of unresolved identifier 'escapedBody'
/****/Pods/Alamofire/Source/Alamofire.swift:1385:35: Operand of postfix '!' should have optional type; type is 'NSURL'
Попробуйте 'pod update'. – mattt
См. Мой ответ [здесь] (https://github.com/Alamofire/Alamofire/issues/433). Все работает нормально для широкой публики. Я бы, конечно, попробовал предложение @ mattt о 'pod update' и других распространенных тактике поиска исправлений CocoaPods. – cnoon
Также попробовал 'pod update', это не решает проблему. – sf89