2016-09-27 3 views
1

После перехода от Swift 2.3 до Swift 3, я обнаружил эти ошибки на этапе компиляции:обновление Alamofire по ошибке podfile

Analyzing dependencies 

[!] Unable to satisfy the following requirements: 

- `Alamofire (~> 4.0)` required by `Podfile` 
- `Alamofire (~> 4.0)` required by `Podfile` 
- `Alamofire (~> 4.0)` required by `Podfile` 
- `Alamofire (~> 4.0)` required by `Podfile` 
- `Alamofire (~> 4.0)` required by `Podfile` 

Specs satisfying the `Alamofire (~> 4.0)` dependency were found, but they required a higher minimum deployment target. 

изменение целевой:

[!] Oh no, an error occurred. 

Search for existing GitHub issues similar to yours: 
https://github.com/CocoaPods/CocoaPods/search? q=File+exists+%40+dir_s_mkdir+-+%2FUsers%2Fusers%2FMyApp-ios%2FPods%2FTarget+Support+Files%2FAlamofire-iOS10.0&type=Issues 

If none exists, create a ticket, with the template displayed above, on: 

https://github.com/CocoaPods/CocoaPods/issues/new

Be sure to first read the contributing guide for details on how to properly submit a ticket: 
https://github.com/CocoaPods/CocoaPods/blob/master/CONTRIBUTING.md 

Don't forget to anonymize any private data! 

Looking for related issues on cocoapods/cocoapods... 
Found no similar issues. To create a new issue, please visit: 
https://github.com/cocoapods/cocoapods/issues/new 

xcode:

The file “Alamofire-watchOS.xcconfig” couldn’t be opened because there is no such file. (/Users/nameusers/MyApp/Pods/Target Support Files/Alamofire-watchOS/Alamofire-watchOS.xcconfig) 

Alamofire-watchOS will not be code signed because its settings don't specify a development team. 

error: unable to read module map contents from 'Target Support  Files/Alamofire-watchOS/Alamofire-watchOS.modulemap': Error Domain=NSCocoaErrorDomain Code=260 "The file “Alamofire-watchOS.modulemap” couldn’t be opened because there is no such file." UserInfo={NSFilePath=/Users/nameusers/MyApp/Pods/Target Support Files/Alamofire-watchOS/Alamofire-watchOS.modulemap, NSUnderlyingError=0x7ff89768f8e0 {Error Domain=NSPOSIXErrorDomain Code=2 "No such file or directory"}} 

error: unable to read module map contents from 'Target Support Files/Alamofire-watchOS/Alamofire-watchOS.modulemap': Error Domain=NSCocoaErrorDomain Code=260 "The file “Alamofire-watchOS.modulemap” couldn’t be opened because there is no such file." UserInfo={NSFilePath=/Users/nameusers/MyApp/Pods/Target Support Files/Alamofire-watchOS/Alamofire-watchOS.modulemap, NSUnderlyingError=0x7ff895163940 {Error Domain=NSPOSIXErrorDomain Code=2 "No such file or directory"}} 
+1

Ваш проект поддерживает более старую iOS, вам нужно изменить цель развертывания на iOS 9.0+. Если вы хотите использовать более старые версии, используйте более старый Alamofire. –

+0

Платформа: ios, '10 .0 'В PODfile – JAck

ответ

1

According to theserelated StackOverflow questions, Swift 3 работает только на iOS 8 и новее.

Похоже, вам необходимо обновить Podfile (и настройки вашего собственного приложения), чтобы иметь более высокий минимальный целевой показатель развертывания. например:

platform :ios, '8.0' 

Это значит, что вы не сможете больше поддерживать более ранние версии iOS.

Смежные вопросы