This is with Xcode 4.5 which I've been using since it became available, if I revert to 4.3.2 then Xcode says "Finished running app" but it doesn't actually do anything - the app is neither installed nor run.

Goto the Organizer in your xcode , press projects tab and delete the derived data for your project and clean the project and again build it..
–
Dinesh RajaJul 12 '12 at 16:29

2

Still get the same thing after doing that. I'll try a reinstall of Xcode.
–
Amino acidsJul 12 '12 at 16:40

8

I found out what it was - while adding device capabilities to the info.plist I had somehow added a new row but not given it a value.
–
Amino acidsJul 12 '12 at 17:10

1

While deleting the derived data eventually worked for me, it didn't help until I rebooted the iPad and OS/X, emptied the trash after using the Finder to delete the derived data, and removed a BLE peripheral connected via a USB port. I don't know which of the steps was required--XCode later compiled with the BLE peripheral attached--but once all of those steps were added to deleting the derived data, the project compiled fine.
–
MikeSep 20 '12 at 21:16

This is the only sollution that worked for me. Already trying to refresh certificates, cleaning folders restarting device, xcode and mac nothing helped. Just delete the attribute and it installed and worked fine.
–
automaticooSep 2 '12 at 20:46

1

This solution also worked for me - weird error.
–
misnomerSep 3 '12 at 12:13

worked for me too... I was changing Device type from "iPhone" to "Universal" and xcode automatically changed target to 6.0 which I didn't noticed at first. Shifted back to 4.3 and it worked...
–
Jim JoseNov 20 '12 at 15:08

My problem was slightly different as I have 2 Developer certificates in Keychain. We have two developer accounts (lets say AD and BD).

1) I did change Bundle identifier from com.BD.game to com.AD.game
2) Device on which I had problems was only signed in AD provisioning profiles.
3) I was unable to debug the game on iPad - although the device had valid provisioning profiles, I had valid certificates, I restarted Mac, device, reinstalled Xcode ... nothing helped.

Do what i did today was examining the project.pbxproj file for any strange entries.

What I found was that Xcode was using proper provisioning profile, but signed the ipa/app with wrong certificate.

For me, the solution was just to use the correct (non-distribution) provisioning profile.

I was defaulting to always using my ad hoc provisioning profile, but then I changed to using my developer profile (team profile) and that solved things. I went ahead and cleaned out the Derived Data directory to be safe but I don't know for certain if it is required.

XCode used to have a warning that told you to use the correct provisioning profile but that error message seems to have gone away in XCode 4.5.

For me restarting of Xcode, cleaning DerivedData and restaring device wasn't enough in most cases, until I had figured out that iTunes was also running, and after quitting iTunes everything worked fine!

So my steps now are simple:

1. Quit Xcode.2. If iTunes is running, quit iTunes.3. Reopen project.

No need to remove app from the device, clean project or restart/disconnect device.
I think that's because Xcode and iTunes use some common libraries (as you know, Xcode Installer always asks to quit iTunes on installing iOS SDK).

I had this problem and tried a number of the suggestions which didn't work for me - then I found the one about removing the "Required device capabilities" in the -Info.plist file (which for me included location-services & gps)
That worked!
I then re-added them and it still worked.. go figure.
This was xCode 4.6.1 & my app is developer with Phonegap/Cordova

I tried all the above and yet it still wouldn't run. I fixed the problem by changing the derived build location. File>Project settings>"derived data location" change to project-relative. Or you could just make sure the default path has permission to read/write.

I had this problem too for a Universal app with Xcode 4.5 on my iPhone ONLY, where I had two debug devices:

iPhone 4 iOS 5.1.1
iPad 1 iOS 5.1.1

The Info.plist had an empty entry under "Required device capabilities"
I know that I did not enter this empty 'Item 0'. The app loads on the iPhone
since I removed the empty item. I did not encounter
this problem on any of several earlier versions of Xcode,
This means that Xcode 4.5 handles this 'inserted' item differently
for the two devices I use. I have been wrong before, but this does seem
like a bug in Xcode 4.5.

Deleting the derived data folder did not help for me.
Using Xcode 4.4.2 the only solution was to open Organizer and delete old expired and extraneous provisioning profiles on the iDevice. Then everything worked perfectly again.

This may be a red herring, but I experienced these problems when I added custom launch images before deleting the default ones. Deleting the default launch and custom images and then adding back in the custom ones fixed it for me. I'm working with iOS 6 and Xcode 4.5.2

There seems to be a few different things that can cause this very helpful error message.

For me, it was down to an incorrect "Required device capabilities" in the Info.plist. I had added a blank array item by mistake (on top of the the architecture, armv7).
Deleted the blank array item and now everything is fine!