If you get a mysterious Xcode hang, and then the alert "Could not open the application package", check the date and time on the device. For some reason iDevices eschew NTP and don't update their clocks, and can sometimes under conditions of battery drain revert to times in the past and stay there.