"No space left on device" Error

Hello!

My app runs just fine on my devices and the simulators with no errors. However, when I try to create an archive so I can submit it to App Store Connect, I get this error:

fatal error: 
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/lipo: 
can't write to output file: /Users/ethan.kerr/Library/Developer/Xcode/DerivedData/knock.-
dsskmmkvtpkihoclkbkoejcmtdnd/Build/Intermediates.noindex/ArchiveIntermediates/knock./Intermed
iateBuildFilesPath/UninstalledProducts/iphoneos/FirebaseFirestore.framework/FirebaseFirestore.lipo 
(No space left on device)

Command CreateUniversalBinary failed with a nonzero exit code

What device is the error referring to?

How should I fix this?

Thanks for the help!

Restart your Mac and try again… (if you have not already tried that).
How much free disk space do you have on your Mac?