Search code examples
iosswiftswift-package-manager

Does Swift Package Manager is supported for iOS?


Well, I'm building an iOS mobile app with Swift 4 and Xcode 9.

What I'm trying to decide which package manager is better to use: Carthage, CocoaPods or Swift Package Manager (SPM).

I would rather prefer Carthage over CocoaPods. However, I'm starting looking at SPM. everyone says that will replace CocoaPods.

So I said: Why don't we start using SPM instead of CocoaPods?

But the documentation explains:

Note that at this time the Package Manager has no support for iOS, watchOS, or tvOS platforms.

That quote made me wonder a question:

Does Swift Package Manager is supported for iOS? Is SPM an option for iOS development?

I think there is not much information about SPM.

Thanks!


Solution

  • Swift Package Manager at this time is only designed to work with everything but iOS. At this point choose the one you prefer between Carthage or CocoaPods.