[swift-users] How to use an SPM library in an (Xcode based) iOS project?

Pierre Monod-Broca pierremonodbroca at gmail.com
Thu Jan 19 11:32:02 CST 2017


Hi,

swift package has a nice option for that : generate-xcodeproj (not sure about the exact spelling) which generate a proper Xcode project bundle.

You can then reference it from another Xcode project or workspace.

Pierre

> Le 19 janv. 2017 à 11:22, Georgios Moschovitis via swift-users <swift-users at swift.org> a écrit :
> 
> I have created a nice little library with SPM ($ swift package init --type=library).
> The library includes some utility classes and associated tests.
> It works as expected.
> 
> Now, I would like to use this library within an iOS application.
> AFAIK, SPM doesn't support iOS at the moment.
> 
> I am wondering, what is the best way to include my library in the iOS Xcode project/build?
> 
> thanks,
> -g.
> _______________________________________________
> swift-users mailing list
> swift-users at swift.org
> https://lists.swift.org/mailman/listinfo/swift-users


More information about the swift-users mailing list