Could not build module 'nanopb' error in Xcode 12.0.1

纵饮孤独 提交于 2021-01-21 05:12:45

问题


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

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


回答1:


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

Source here




回答2:


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.


来源:https://stackoverflow.com/questions/64310532/could-not-build-module-nanopb-error-in-xcode-12-0-1

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!