I solved this problem by opening the project in Xcode and clicking "File - Packages - Reset Package Caches", and now it works.
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags: