Uninstall/remove Carthage from iOS/xCode project?

前端 未结 3 1172
粉色の甜心
粉色の甜心 2021-02-05 02:05

Here is a link to Carthage:

https://github.com/Carthage/Carthage

It additionally adds some changes in project files so I can simply remove extra fil

3条回答
  •  谎友^
    谎友^ (楼主)
    2021-02-05 02:09

    Removing Carthage has actually been pretty easy for me.

    1. I simply copy my frameworks from the Carthage folder into a frameworks folder I have in my main project folder.
    2. Make sure they are added back to the Xcode project from their new location.
    3. Search the entire project in Find navigator for references to Carthage. The only ones I found were in the Frameworks search paths under Build Settings. As long as you have a reference to your non-Carthage frameworks folder, you should be able to delete the Carthage references.
    4. Lastly, remove the copy-frameworks run script put in place to keep your Carthage frameworks up to date. Simply click the x in the top right

    You should always be able to add Carthage back if you want, but these steps should remove it from a particular Xcode project, while keeping the frameworks you want.

提交回复
热议问题