I just updated all packages that were getting errors. Just make sure the version of the package has changed. After updating, clear the build folder and try again. It helped me
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags: