How to produce an object file from an assembly file?

That's not supported at the moment. You could compile the individual swift files to object files, but I'm guessing that's not what you're looking for.