Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Could not read serialized diagnostics file: Invalid File: Invalid diagnostics signature

Tags:

xcode

I'm getting this weird warning. I'm not sure what could cause it. A .dia file extension supposedly indicates a core digraph graphics file. I did not add one and the app has almost no ui at all.

Could not read serialized diagnostics file:

Could not read serialized diagnostics file: error("Invalid diagnostics signature")

like image 390
ScottyBlades Avatar asked Jun 25 '20 01:06

ScottyBlades


2 Answers

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. 🤦
like image 169
ScottyBlades Avatar answered Nov 11 '22 14:11

ScottyBlades


Here's the zsh script line I use (after navigating to the project's folder):
Note: Uses rm -rfs!

rm -rf ~/Library/Caches/CocoaPods; rm -rf Pods; rm -rf ~/Library/Developer/Xcode/DerivedData/*; pod install;
like image 14
hEADcRASH Avatar answered Nov 11 '22 14:11

hEADcRASH