LoginSignup
3

More than 5 years have passed since last update.

KiwiをCocoaPodsからインストールしようとしたら、ハマった

Last updated at Posted at 2014-08-16

既存のプロジェクトにKiwiを導入したくて、
CocoaPodsにKiwiをインストールさせるために以下を書いた。

platform :ios

target "App_Kiwi", :exclusive => true do #テスト用プロジェクト
    pod 'Kiwi'
end

そんで、プロジェクトのルートディレクトリで下記を実行。

$ pod install
Analyzing dependencies
[!] The platform of the target `App_Kiwi` (iOS 4.3) is not compatible with `Kiwi (2.2.4)` which has a minimum requirement of iOS 5.0 - OS X 10.7.

色々調べた結果、platformでバージョンを指定していないのが、ダメっぽい。

platform :ios, '7.1' #ここで使用しているバージョンを書く。

target "App_Kiwi", :exclusive => true do
    pod 'Kiwi'
end

もう一回チャレンジ!

$ pod install
Analyzing dependencies
Downloading dependencies
Installing Kiwi (2.2.4)
Generating Pods project
Integrating client project

[!] From now on use `App.xcworkspace`.

うまくいった!

参考URL

http://stackoverflow.com/questions/18797180/platform-of-the-target-fubartests-ios-4-3-is-not-compatible-with-kiwi-2-2

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3