Search code examples
iosswiftcocoapods

CocoaPods not Installing properly


my project was working fine until I installed the pushNotifications pod. It gave me an error that it is compatible with only ios 10.0 so I forced my pods version from global 9.0 to 10.0. After that I am unable to get my app to work. I have tried clean pods and reinstalling. I even tried by cleaning pod cache. Error

I don't know how to explain this error. So, any help will be appreciated. thnx


Solution

  • Looks like 'pushNotifications' pod needs iOS 10+ to run and I think your project supports lower versions of iOS(i.e iOS 9). Because a pod global version specifies a minimum version to your pod to run which means, in your case, that the pods you add must support iOS 10+ otherwise your cocoapods won't be able to compile. And looks like you're using some pod that doesn't support iOS 10+(i.e AppAuth) that's why you're having this issue. I don't know which framework you're using but I really recommend you to take a look on it and find which one doesn't support iOS 10+ replace or update it because they need to support iOS 10+ otherwise it will be a huge problem for you in the future.