Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

CocoaPods doesn't install Pods for iOS7 and Xcode 5

With my work's developer account I have created a new iOS Project with Xcode 5 and iOS7. When installing "AFNetworking" or "RestKit" pods. I get this error message.

[!] The platform of the target `Pods` (iOS 4.3) is not compatible with `AFNetworking 
(1.3.1)` which has a minimum requirement of iOS 5.0 - OS X 10.7.

I have been looking for ways to solve this and nothing has came up. Anyone have a solution for this?

like image 232
ericraio Avatar asked Jun 23 '13 21:06

ericraio


People also ask

What is latest version of CocoaPods?

1.11. 2 - September 13, 2021 (287 KB)


1 Answers

Make sure your Podfile looks like this:

platform :ios, '6.0'

pod 'AFNetworking'
# other pods

That's because AFNetworking requires iOS 5+.

like image 76
Marcelo Fabri Avatar answered Sep 28 '22 00:09

Marcelo Fabri