Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Could not build module 'nanopb' error in Xcode 12.0.1

Tags:

xcode

ios

swift

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

like image 956
Prodigy Avatar asked Oct 12 '20 01:10

Prodigy


2 Answers

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

Source here

enter image description here

like image 111
Prodigy Avatar answered Sep 16 '22 23:09

Prodigy


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 :)

like image 20
F Perroch Avatar answered Sep 17 '22 23:09

F Perroch