notsoux
notsoux

Reputation: 1605

Xcode 4.4 error - Timed out waiting for app to launch

yesterday I installed Xcode 4.4.

I'm working on a project which needs to run on ios 4.1 upwards, supporting iOS device with camera. Until I installed Xcode 4.4 everything went well, and I can test app on iphone 3gs and 4s. After I installed Xcode 4.4 I was unable to test app on iphone 3gs, and everytime I try to do it, xcode shows me that message: - Could not lauch "appname". timed out for app to lauch -

Does someone have any idea how to get rid of that error?

Upvotes: 101

Views: 29141

Answers (12)

Vinzzz
Vinzzz

Reputation: 11724

I had a similar issue when trying to debug an App with Ad-Hoc provisioning... Check which provisioning you're using, it seems ad-hoc provisioning cannot be used for debugging.

EDIT In fact, it seems only development provisioning profiles are Ok for debugging

Upvotes: 268

FunkyMonkey
FunkyMonkey

Reputation: 21

I tried all solution above with no success. But when I did complete cleanup of my iPhone 4S with iOS 7 this problem never occurred again.

Upvotes: 0

mojuba
mojuba

Reputation: 12237

In my case the cause turned out to be the launch daemon being unable to load the app icons and crashing. Even though it didn't look like a crash - the device and the OS were becoming very slow or totally unresponsive. I figured this by analysing the crash logs. (My icons were too large - about 2,500x2,500 - I simply forgot to reduce their sizes properly before adding them to resources). Hope this helps someone.

Upvotes: 0

elp
elp

Reputation: 8131

Try to remove you app from simulator and/or reset simulator settings.

Simulator settings could be different from old one.

Generally, resetting everything works well.

Upvotes: 0

SachinVsSachin
SachinVsSachin

Reputation: 6427

I had same problem now I resolved it ..

Follow these step to sort out the problem.

Step:1 Go to xcode folder like this

enter image description here

Step2: Reach to folder xcode->DerivedData

Step3: Delete all folder inside of DerivedData

It will work for you Thanks

Upvotes: 1

Obj-Swift
Obj-Swift

Reputation: 2942

Old question but adding my solution for rare cases like mine. Removing app from device/ clean-build/ provisioning changes did not work for me. I restarted the Xcode and it started working fine.

Upvotes: 0

edaype
edaype

Reputation: 31

This worked for me on XCode 4.6 iOS 6.1.2

  • Open Organizer
  • Select your device from the left
  • Add to Portal
  • Enter you Developer credentials
  • Close Organizer and in the project file under your target select "Build Settings" -> "Code Signing Identity" pick the profile "iOS Team Provisioning Profile"
  • Clean and run.

Upvotes: 1

Mann
Mann

Reputation: 5507

It is issue of Provisioning profile. I was using Distribution Provisioning Profile. Changed back to Development Provisioning profile from Developer portal and used that, Solved the issue.

Upvotes: 1

user1919461
user1919461

Reputation:

I also had same problem. I deleted old provisioning & distribution profiles from the testing devices and installed the modified profiles. The date of these provisioning profiles matter. The error timedout got solved.

Upvotes: 2

bearMountain
bearMountain

Reputation: 3980

scheme configuration For me:
Under Edit Scheme
For the Run configuration
On the Info tab
For Build Configuration
I had Release selected

But, it needs to be on Debug to run locally on a device.

Upvotes: 4

B.M. Lam
B.M. Lam

Reputation: 31

I had a similar issue. In my case the reason was that I changed the setting for Launch ( xcode -> product -> Edit Scheme) to Wait and forgot about it.

When I changed the setting back to Automatic, the app will launch as usual.

Upvotes: 3

Matthew Velie
Matthew Velie

Reputation: 21

Remove the app from the device/simulator and try again, should work. Looks to be a bug in xcode.

Upvotes: 1

Related Questions