I just upgraded Xcode to version 4.5, but I now get this error when trying to run it on my iPhone:
target specifies product type 'com.apple.product-type.application', but there's no such product type for the 'iphoneos' platform
It works fine on the simulator and it used to work in version 4.4.
You probably lost The application part from your XCode Specifications
Exit XCode and Go to (for Xcode from MacAppStore):
Backup these two files before editing:
iPhoneOSPackageTypes.xcspeciPhoneOSProductTypes.xcspecOverwrite this content to
iPhoneOSPackageTypes.xcspecand this content to
iPhoneOSProductTypes.xcspecRestart XCode then Clean your Project and build it again for you device.