Ios – Archive button grayed out in Xcode iosios-simulatorxcodexcode-schemexcode10 Would you be able to help me understand the reason why Archive button is grayed out in Xcode? I have all developers profiles downloaded Device type set to iPhone 6 And archive is checked in scheme. Best Answer Answer valid through Xcode 7, 8, 9, 10, 11 and 12+ You can not archive, because from target you have not selected device or Generic iOS device or Any iOS Device , still there is a simulator. Nothing generic or wrong with Xcode 7. This happens with all Xcode versions. Problem - Why archived button is grayed out? Solution - Why archived button is not grayed out? In Xcode 12 it is named Any iOS Device Related SolutionsXcode “Build and Archive” from command line I found how to automate the build and archive process from the comand line, I just wrote a blog article explaining how you can achieve that. The command you have to use is xcrun: /usr/bin/xcrun -sdk iphoneos PackageApplication \ -v "${RELEASE_BUILDDIR}/${APPLICATION_NAME}.app" \ -o "${BUILD_HISTORY_DIR}/${APPLICATION_NAME}.ipa" \ --sign "${DEVELOPER_NAME}" \ --embed "${PROVISONING_PROFILE}" You will find all the details in the article. If you have any questions dont hesitate to ask. Iphone – Xcode ‘Build and Archive’ menu item disabled Build configiuration setting needs to be an "iOS Device" (or any specific device if connected) to activate "Product → Archive" menu item. For some strange reason when any kind of iOS Simulator is selected, Archive is greyed out. Related TopicXcode – How to “add existing frameworks” in Xcode 4Xcode 4 – “Archive” is greyed outIos – Cannot generate iOS App archive in xcodeIos – Xcode Simulator: how to remove older unneeded devicesXcode Product -> Archive disabledIos – Xcode : failed to get the task for processIos – I get conflicting provisioning settings error when I try to archive to submit an iOS appXcode 10 Error: Multiple commands produce
Best Answer
Answer valid through Xcode 7, 8, 9, 10, 11 and 12+
You can not archive, because from target you have not selected device or Generic iOS device or Any iOS Device , still there is a simulator.
Nothing generic or wrong with Xcode 7. This happens with all Xcode versions.
In Xcode 12 it is named Any iOS Device