In my case I got LLVMError(description: "file too small to be an archive")
When I created a new project it worked fine at first , then when I added the SPM I was using in the old project the preview in the new one started getting the same error as well
I had some other SPMs in the main one , I started added them 1 by 1 so all worked fine except ios-places-sdk and ios-maps-sdk
So apparently the problem for me is there.