Skip to main content

Adding a Swift Package to Multiple Targets

·1 min

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.