Adding a Swift Package to Multiple Targets

August 11th, 2020

Filed under: Xcode | Be the first to comment!

If your Xcode project has multiple targets and you add a Swift package, Xcode will let you add the package to only one of the targets. How do you add the package to the other targets?

Select a target from the project editor. Click the Add button in the Frameworks, Libraries, and Embedded Content section.

FrameworksAndLibraries

A sheet will open with a list of frameworks and libraries that you can add. The Swift package will appear in the list.


Leave a Reply

Your email address will not be published. Required fields are marked *