Coding With Fun
Home Docker Django Node.js Articles Python pip guide FAQ Policy

How to remove cocoapods from a project in xcode?


Asked by Aubrey Schaefer on Dec 01, 2021 FAQ



After deintegration of pod from your project use this following command on your terminal to clean it completely. After completing the above tasks there should be the Podfile still remaining on your project directory..Just delete that manually or use this following command on the terminal..
Furthermore,
To install your first library using CocoaPods you need to close XCode first. Launch terminal and cd into the XCode Project directory. For me the Xcode Project location is at cd Desktop/workspace/CocoaPodsTest. Now type the command : pod init.
Likewise, How do I remove Cocoapods from my Mac? 1 Open terminal on your Mac. In terminal navigate to your Xcode Project directory with cd. 2 In terminal type: sudo gem install cocoapods -deintegrate cocoapods -clean. 3 In terminal type: pod deintegrate. 4 In terminal type: pod clean. 5 In terminal type: rm Podfile.
Moreover,
Podfile and Podfile.lock are two different files. Besides that the pod install line does two other things: CocoaPods creates a .xcworkspace in our XCode project. It contains the library dependencies. Moving ahead we'll be opening our XCode project from this file.
Keeping this in consideration,
CocoaPodsTest is the XCode project name I've set. Replace it with the name of your XCode project. Now add the library to your project via the import statement. import Macaw in this case and you're ready to use the library in your XCode project.