CocoaPods 不安装适用于 iOS7 和 Xcode 5 的 Pods

问题描述 投票:0回答:1

我使用 Xcode 5 和 iOS7 创建了一个新的 iOS 项目。安装“AFNetworking”或“RestKit”pod 时。我收到此错误消息。

[!] 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.

我一直在寻找解决这个问题的方法,但没有任何结果。有人有解决办法吗?

objective-c cocoapods afnetworking
1个回答
48
投票

确保您的 Podfile 如下所示:

platform :ios, '6.0'

pod 'AFNetworking'
# other pods

那是因为

AFNetworking
需要iOS 5+。

最新问题
© www.soinside.com 2019 - 2024. All rights reserved.