I was building my project fine in debug mode, but started getting this error when I changed to Release
clang: error: no such file or directory: '/Users/vagrant/Library/Developer/Xcode/DerivedData/myProject-afhcainiqkrasrazkmlyzpkzbhne/Build/Intermediates.noindex/ArchiveIntermediates/skimitarDevelopment/BuildProductsPath/Release-iphoneos/libRNGoogleSignIn.a'
No entirely sure why, libRNGoogleSignIn.a is linked in my Build Phases on all of my targets.
This is first time I came across the issue, tried cleaning my project, deleting DerivedData folder, completely quitting (restarting) XCode with no luck.
libRNGoogleSignIn.a file mentioned in the error refers to this projects Product (https://github.com/Asimetriq/rn-google-sign-in/tree/master/ios)
It is added to my main project as a library i.e. I right click Libraries -> Add files to my project -> I select RNGoogleSignIn.xcodeproj
Afterwards I go to Build Phases and add libRNGoogleSignIn.a under Linking step.
I'm not sure if this is related, but file is highlighted in red:

And file is clearly linked, I'm not sure why it is never appearing in DerivedData
