How do you delete Podfile.lock?

17.6k views Asked by At

Xcode recently updated and my code is giving this error in STPAPIClient.m:

Incompatible block pointer types sending '__strong STPAPIResponseBlock _Nonnull' (aka 'void (^__strong)(__strong ResponseType, NSHTTPURLResponse *__strong, NSError *__strong)') to parameter of type 'void (^)(STPSource *__strong, NSHTTPURLResponse *__strong, NSError *__strong)'

Edit: I found podfile.lock, but every time I delete it and pod install, I check the project directory and Podfile.lock is still there. Does anyone know how to delete it? Thanks!

2

There are 2 answers

2
Rob Napier On BEST ANSWER

You should never modify Podfile.lock directly. It's generated by pod install. If you want to remove a Pod, edit Podfile, delete the Pod you want, and rerun pod install.

1
Dhiroo Verma On

If you have removed some packages and it is still showing in podfile.lock.

Just goto project/ios_directory in your terminal and run following command one by one.

=> pod update

=> pod install