8
votes

I upgraded my Xcode to 12. Everything was working perfectly and all of a sudden I kept getting bellow error message (Image below)

enter image description here

enter image description here

SO link have tried using to solve this issue

SO Link

What I've done so far

  • Cleaned Build Folder
  • Restarted Xcode
  • Updated Cocoapods
  • Deleted DerivedData
  • Cleared pod cache
  • Deleted pods directory and file and reinstall

None of them worked and its getting frustrating.

Pod file

enter image description here

4
If Im not mistaken, that gets installed as part of firebase. You should be able to run ‘pod repo update’ then ‘pod install’ and it should take care of it. - valosip

4 Answers

43
votes

All I did was to follow the instruction(see image below) and it got fixed.

Source here

enter image description here

1
votes

I had the same problem with a project still targeting iOS 8 as the minimum iOS version. This steps solved my problem:

  1. Update minimum target iOS version to iOS 9 on Podfile file;
  2. Open terminal on project folder, remove all pod file dependencies and update them by running:
rm -rf /Pods
pod repo update
pod install
  1. Update minimum project target iOS version to iOS 9;
  2. Remove DerivedData;
  3. Clean project;
  4. Compile/run project again.
1
votes

A simpler solution is to update cocoapods to the 1.10 version

First, update the CocoaPods installation : [sudo] gem install cocoapods

Then, update your project : bundle update cocoapods

Finally, run pod install and everything should be OK :)

0
votes

If the previous solutions did not help someone, then try changing it this way:

#include <nanopb/pb.h>

->

#include "nanopb/pb.h"