Using Swift Package Manager (SPM) for an existing iPhone App Xcode project (having Swift + Objective-C files)

I am trying to create a library that I can use in my existing Xcode project (iOS app). I know that Swift Package Manager now supports creating an Xcode project using the command

swift package generate-xcodeproj

But I am not creating a new project. In my existing project with C objects and Swift Files, how can I use the newly created Swift package?

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

+4
source share
2 answers

As far as I know, you cannot use SPM right now in iOS apps.

, , - Vapor Mac Linux.

+4

Swift (v4) iOS, .

,

  • Package.swift .
  • swift package generate-xcodeproj, iOS, xcodeproj
  • , ,

+5

Source: https://habr.com/ru/post/1668711/


All Articles