Search code examples
iosswiftxcodeswift-package-manager

Using Swift Package Manager (SwiftPM) for Existing [iPhone App] XCode Project (Having Swift + Objective C Files)


I am trying to create Library which I can use into my Existing XCode Project (iOS App). I am aware that Swift Package Manager now support generating Xcode project with command

swift package generate-xcodeproj

But I am not creating new project. In my existing project having Objective C & Swift Files, How can I use newly created Swift Package?

How to add Package.swift file to my current Project?


Solution

  • As far as I know you can't use SPM right now within iOS apps.

    You can use it in hosted environments for example if you are hosting a web application with Vapor on a Mac or on Linux.