问题
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:
- Update minimum target iOS version to iOS 9 on
Podfilefile; - 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;
- Remove
DerivedData; - Clean project;
- Compile/run project again.
来源:https://stackoverflow.com/questions/64310532/could-not-build-module-nanopb-error-in-xcode-12-0-1