Search code examples
iosiphoneswiftaudiokit

Audiokit 4.5.2 - can't install via cocoa pods in Terminal


My app's deployment target is currently set to 9.2 in Xcode. I believe 9.0 should be minimum.

However when trying to update to AudioKit 4.5.2 (from 4.4) - I'm getting the following error in Terminal...

⇒  pod install
Analyzing dependencies
[!] CocoaPods could not find compatible versions for pod "AudioKit":
  In Podfile:
AudioKit (~> 4.5.2)

Specs satisfying the `AudioKit (~> 4.5.2)` dependency were found, 
but they required a higher minimum deployment target.

What should I do? Many thanks.


Solution

  • The answer to your question has already been given to you.

    Specs satisfying the AudioKit (~> 4.5.2) dependency were found, but they required a higher minimum deployment target.

    This literally means you're trying to update to v4.5.2 but that specific version requires a higher minimum deployment target, should be higher than your iOS 9.2.

    What should I do? Many thanks.

    You have multiple options:

    1. Target iOS 10 (or at least the v4.5.2's deployment target), if that's okay with your manager or team lead, or you.
    2. Explicitly target AudioKit's lower version, like what you've mentioned, in your podfile, like so: pod 'AudioKit', '4.4'.

    UPDATE:

    I made a sample Xcode project and discovered that they haven't released v4.5.2 for their cocoapods, well, as far as I know. So this should be in your podfile insted:

    pod 'AudioKit', '~> 4.0'
    

    and make sure that you also have this line in your podfile, targeting your iOS version:

    platform :ios, '10.0'
    

    I hope this helps!