Select your package.
Select a Dependency Rule. In most cases, you probably want to set this to Up to Next Major Version.
Click Add Package.
Under Add to Target, select the target you want to add the package to.
Click Add Package.
Done! Yes, it’s that simple.
Select the additional target you want to add your package to in the Project Editor.
In the General tab, scroll down to Frameworks and Libraries and click the + (plus) below the list.
Select your package in the list, and click Add.
Under Package Dependencies in the Project Navigator, control-click (right-click) the package and select Update Package.
Control-click (right-click) Package Dependencies in the Project Navigator and select Update to Latest Package Versions.
Select the target you want to remove your package from in the Project Editor.
In the General tab, scroll down to Frameworks and Libraries and click the − (minus) below the list.
Confirm by clicking Delete.
Select your project in the Project Editor.
In the Package Dependencies tab, select the package you want to remove and click the − (minus) below the list.
Confirm by clicking Remove.