7

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!

Hiya
  • 73
  • 1
  • 1
  • 4

2 Answers2

6

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

cmcodes
  • 1,559
  • 19
  • 24
Dhiroo Verma
  • 478
  • 1
  • 5
  • 13
  • 6
    `pod clean` didn't work for me. I ran `pod update` instead and it generated me a new podfile.lock and I was able to run `pod install` afterwards. – Chase Ernst Jun 17 '21 at 00:23
5

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.

Rob Napier
  • 286,113
  • 34
  • 456
  • 610