Skip to content

Instantly share code, notes, and snippets.

@getaaron
Forked from neonichu/os_support.md
Last active August 29, 2015 14:13
Show Gist options
  • Save getaaron/73a3a5eb776613681389 to your computer and use it in GitHub Desktop.
Save getaaron/73a3a5eb776613681389 to your computer and use it in GitHub Desktop.

CocoaPods only supports Swift on OS X 10.9 and newer, and iOS 8 and newer.

Here's why:

  • Swift is supported on OS X 10.9 / iOS 7 and newer, as stated by Apple numerous times.

  • There is no support for building static archives with Swift.

  • Dynamic frameworks are supported on all versions of OS X.

  • Dynamic frameworks are unsupported on iOS versions prior to 8:

    ld: warning: embedded dylibs/frameworks only run on iOS 8 or later.

From this we can conclude that it is not possible to support Swift on any platforms earlier than OS X 10.9 and iOS 8.

To use Swift libraries on apps that support iOS 7, you must manually copy the files into your application project.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment