How to delete Swift Package Dependency in Xcode 11?

后端 未结 4 1836
自闭症患者
自闭症患者 2021-02-06 19:56

I have a project in Xcode 11 that I added Swift Package Manager dependencies to. I now realized that I no longer need one of the package dependencies I previously added to my pr

相关标签:
4条回答
  • 2021-02-06 20:30
    1. Open Xcode
    2. Select your project
    3. Look at the top middle
    4. Select Swift Package Manager menu

    You'll be able to manage your packages (add / remove)

    0 讨论(0)
  • 2021-02-06 20:35

    In addition to Pierre's answer, this was driving me crazy, I had a sub project that I was editing, I forgot about that (it was in a subfolder). Even though I removed it in the "Swift Packages" pane it kept coming back. Removing that sub folder reference made sure the PM dependencies went away.

    0 讨论(0)
  • 2021-02-06 20:40

    Firstly I removed it from dependencies and targets in Package.swift, then i regenerated my project file with swift package generate-xcodeproj

    0 讨论(0)
  • 2021-02-06 20:53

    I removed the swift package, but its dependancies were still showing in the project. I saw the swift package was still in the Frameworks folder at the bottom of left pane,

    I removed it from there and the dependencies are gone.

    0 讨论(0)
提交回复
热议问题