iosxcode

Can't select needed packages in Xcode 15


Why can't I select only the packages that I need in Xcode 15, when I add dependencies with Swift Package Manager? For example, I want to install Firebase, but I don't need all of those dependencies that come with it. There is no checkmark next to the package name, so I can't deselect it. enter image description here


Solution

  • You should just not add them to your target.

    1. Select the project
    2. Select the target
    3. (from the general tap) go to the frameworks, libraries, ....
    4. Select the frameworks you don't want
    5. hit the delete or just click on the minus button below
    6. Confirm

    Demo

    You can add them back with the plus button if you need to.