簡體   English   中英

CocoaPods錯誤 - 目標`Pods`(OS X 10.6)的平台與之不兼容

[英]CocoaPods Error - The platform of the target `Pods` (OS X 10.6) is not compatible with

我嘗試使用pod install和看起來像的Podfile安裝我的CocoaPods

platform :osx

pod 'ReactiveCocoa', '~> 2.1.8'

但我得到了錯誤

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

我的部署目標是OSX 10.9,SDK是10.9,所以我不確定它在哪里獲得OSX 10.6。

解決方案是在Podfile指定平台版本

平台:osx,'10 .7'

我發現CocoaPods的默認平台在OS X上是10.6,在iOS上是4.3。 CocoaPods網站在這里描述它。 它似乎不關心或嗅探Xcode項目文件中的平台版本。

顯然,iOS項目會出現類似的錯誤

[!]目標Pods (iOS 4.3)的平台與...不兼容

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM