It appears to be an internal issue, the following steps seem to reliably resolve it for me.
- Installing my uninstalled dependencies (ie: CocoaPods).
- Cleaning the build folder.
- Removing derived data.
- Restarting Xcode
- If that doesn’t work restarting my computer makes this go away. 🤦