Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Problem running iPhone application on iPhone from Xcode (and in Instruments)

I have a problem running one application on the iPhone from Xcode (or Instruments). When I try to run the app I get the error message Failed to upload XXX.app in the bottom left corner of Xcode. The strange thing is it actually uploaded the app to the iPhone but it doesn't start it (after this I can start the app by hand on the iPhone).

So without being able to start the app from Xcode or instruments I have no chance of debugging/performance testing.

Any advice on what might be going wrong here?

The iPhone console shows me this:

Thu Oct  1 14:25:18 unknown mobile_installationd[1976] <Error>: 00808e00 install_embedded_profile: Skipping the installation of the embedded profile Thu Oct  1 14:25:23 unknown SpringBoard[25] <Warning>: Reloading and rendering all application icons. 

Other applications work fine. I've tried this on two iPhones (both 3.1) with the same result. I am running Xcode 3.2 on SnowLeopard.

Regards

like image 368
Ben Avatar asked Oct 01 '09 13:10

Ben


People also ask

How do I make the Xcode app work on my iPhone?

Open up a project in Xcode and click on the device near the Run ▶ button at the top left of your Xcode screen. Plug your iPhone into your computer. You can select your device from the top of the list. Unlock your device and (⌘R) run the application.

Can Xcode be used on iPhone?

Xcode includes everything developers need to create great applications for Mac, iPhone, iPad, Apple TV, and Apple Watch. Xcode provides developers a unified workflow for user interface design, coding, testing, and debugging.

How do I use Xcode Instruments?

Press Command-I in Xcode, select Allocations from the list and press Choose. After a moment, you'll see the Allocations instrument. It should look familiar because it looks a lot like Time Profiler. Click the record button in the top-left corner to run the app.

How do I allow apps to run on iOS?

To do this, open the Settings app and scroll down to the list of apps at the very bottom. Tap an app and you'll see the permissions it wants. You can enable or disable individual permissions for specific apps from here.


2 Answers

This happened to me as well (more than once). I ultimately had to restart Xcode to resolve the problem (after verifying the code signing settings were correct, the provisioning profile was installed, etc..).

like image 114
Shawn Avatar answered Sep 20 '22 03:09

Shawn


I had the same problem and restarting Xcode solved it. Of course I checked that the right provisioning profile was installed on the iPhone and that the bundle id in the project settings matched the provisioning profile.

like image 32
iphone007 Avatar answered Sep 20 '22 03:09

iphone007