Reputation: 49
I need to remove a specific CocoaPod from my Xcode project. Browsing similar questions here on Stack Overflow, I ran into situations where the leading answer caused me to remove all my pods from the project and delete the workspace. Another answer suggested I simply needed to delete the pod from my Podfile and then run pod install
, but that doesn't work either; I got several errors related to that pod when I went to build the app.
If I check the Pods folder via Finder, the deleted pods are no longer there. However, if I check Pods > Targets via the workspace, I still see the pods I deleted. They are also still in the Pods > pods directory in the workspace.
For now, I've deleted the related pods from the Pods > Targets area and the app builds fine. The pods are still in my Pods > pods directory though. Can I delete those? And, should pod install
be handling all this for me in one go?
Upvotes: 3
Views: 8624
Reputation: 341
pod 'FirebaseAuth'
pod 'FirebaseFirestore'
pod 'FirebaseDatabase'
pod 'FirebaseAuth'
pod 'FirebaseFirestore'
pod install
Upvotes: 2
Reputation: 1250
You deleted specific pods your app. For examples your podfile
target 'AppTargetName' do
use_frameworks!
pod 'Alamofire'
pod 'SwiftyJSON'
pod 'OneSignal'
pod 'Fabric'
end
if You want to delete only Fabric
pods, you remove this and terminal commant pod install
So in the last case;
target 'AppTargetName' do
use_frameworks!
pod 'Alamofire'
pod 'SwiftyJSON'
pod 'OneSignal'
end
Good works :)
Upvotes: 6