These steps have helped me.
This happens sometimes when your Xcode does not support a specific version of third-party dependencies. Try using the correct version of third-party dependencies compatible with the Xcode version.
- Clear the received data in Xcode. Xcode โ File โ Workspace Options โ Click the gray arrow icon next to the derived data.
- Check the carthage version by running the
carthage version . It should be above 0.20.0. Run carthage update --platform iOS --no-use-binaries in your terminal. Allows you to get rid of compatibility issues. - Clean up the project. Command + Shift + K. Then run and run.
source share