Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error : failed to launch, when running on ipad

Tags:

After much frustration I've finally got an application to run on an iPad without errors. However it doesn't run. It gives the following error. My application does run on the simulator but doesn't run on an iPad and gives the below error. I'm really not sure why. I went to the described folder the structure of the folder is as follows.

Products
 .DS_Store
  Debug-iphoneos
   .DS_Store
    sampleproject.app
    sampleproject.app.dSYM
  Debug-iphonesimulator
   .DS_Store
    sampleproject.app
    sampleproject.app.dSYM



error: failed to launch     '/Users/x/Library/Developer/Xcode/DerivedData/sampleproject/Build/Products/Debug-iphoneos/sampleproject.app/myProject' -- No such file or directory (/Users/x/Library/Developer/Xcode/DerivedData/sampleproject/Build/Products/Debug-iphoneos/sampleproject.app/myProject)
like image 737
CodeGeek123 Avatar asked Feb 27 '12 17:02

CodeGeek123


People also ask

Can't Launch iPhone has denied the launch request?

Remove your connected iPhone, iPad from the mac. Restart your device. Select "Automatically manage signing" in Xcode settings. Reconnect your iPhone, iPad.

Why won't My Games open on my iPad?

Install Updates Updating both your apps and your iPad's operating system may solve the issue if the cause is a bug or an incompatibility in an app. Open the App Store and tap "Updates." Tap "Update All" to update all your apps and then check if the issue is resolved.


1 Answers

Just had the same error on Xcode 4.3.2, with target iPad3 5.1, but was able to build and run on my device after these steps:

  Deleted my DerivedData directory (emptied trash too)
  Quit XCode
  Disconnected iPad USB
  Rebooted Mac
  Rebooted iPad (power down and back up)
  Reconnected iPad USB.
  Restarted Xcode with project
  Confirmed build for debug on device selected.
  Clicked Run

I've no idea whether all these steps are mandatory. This is a crummy answer, since it neither explains the problem, nor offers a sure fix. I expect better of Apple; I've looked for a better answer, but found nothing.

Rebooting to solve problems is no solution! OTOH, it let me proceed on with my work, so...a small blessing.

like image 59
Taryn Avatar answered Oct 19 '22 05:10

Taryn