15

I can't seem to get past this error and don't know why. I'm running xcode 4.6.3 The project's ios deployment target says iOS 6.1 the base sdk is 6.1

My Podfile is:

# Podfile
platform :ios  
target :fubarTests, :exclusive => true do 
 pod 'Kiwi' 
end 

and when I try to run pod install from the command line I get the error about the target being iOS 4.3.

Why does it think my target is 4.3 and how can I change it?

user2712765
  • 161
  • 1
  • 3
  • 1
    You might want to check your version of CocoaPods. `pod --version` should return `0.24.0` otherwise you'll probably want to update with `[sudo] gem update` (newer version of CocoaPods automatically detect your project's version so you don't have to specify the platform as Adam suggested) – Keith Smiley Sep 14 '13 at 01:18
  • 1
    @KeithSmiley wow that's a nice addition, I wasn't aware that had been added. – Adam Sharp Sep 14 '13 at 01:46

2 Answers2

23

You need to specify

platform :ios, '6.1'
Adam Sharp
  • 3,618
  • 25
  • 29
9

It's no longer necessary to specify the platform and version. For me I just deleted the line beginning platform and everything started working.

  • 1
    But then the cocoapods won't tell you if a pod is not compatible with your ios version.... and maybe your app is going to crash or you just can't use the framework – Alex Cio Jan 19 '15 at 12:49