Uninstall/remove Carthage from iOS/xCode project?

前端 未结 3 1171
粉色の甜心
粉色の甜心 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:31

    I have almost spent a week and now can say to remove Carthage safely and without any side effects there are following step by step process

    1. It's better to do it step by step, means if you have installed four (4) frameworks using Carthage just go by removing one framework at a time and after each removal successfully build and run on device and simulator to see the final result. And even if you need any framework out of those 4 first delete, clean your project and then reinsert the needed framework in your project using another mechanism you want.
      1. From ProjectNavigator > Build Phases remove the reference of the framework
      2. From Cartfile & Cartfile.resolved remove all references of the frameworks and save
      3. Remove Framework from the left-hand side of the project navigator (where you see the entire file structure) by selecting the framework and pressing delete. On being given the option by Xcode select remove all references
      4. Go to terminal and cd/Path to. your project
      5. Run the command Carthage update --platform iOS (platform you have to choose as per what project is meant for so if iOS select iOS or else select as per your choice)
      6. Let the Carthage download all dependencies again
      7. Build & Run
      8. Repeat steps from 2 to 8 till you have no framework left
      9. Search in Finder a).Cartfile b).Cartfile.resolved c). Carthage/

    Delete all of these and again clean and build your project.

提交回复
热议问题