Could not build module 'nanopb' error in Xcode 12.0.1
All I did was to follow the instruction(see image below) and it got fixed.
I had the same problem with a project still targeting iOS 8 as the minimum iOS version. This steps solved my problem:
- Update minimum target iOS version to iOS 9 on
- Open terminal on project folder, remove all pod file dependencies and update them by running:
rm -rf /Pods pod repo update pod install
- Update minimum project target iOS version to iOS 9;
- Clean project;
- Compile/run project again.
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
pod install and everything should be OK :)