Check if you have the Simulator selected. You need to make sure a Device is selected or you can’t archive the project.