JAK
JAK

Reputation: 6481

Lost connection to "iPhone 6”.when first time run my iOS app in xcode6

I am using Xcode6.0.1, first time run my app in iOS simulator then I got following error message

Restore the connection to "iPhone 6" and run “APPNAME” again, or if "APPNAME" is still running, you can attach to it by selecting Debug > Attach to Process > APPNAME.

How do I solve this issue?

Screenshot for error

Upvotes: 7

Views: 5121

Answers (7)

amisha.beladiya
amisha.beladiya

Reputation: 363

delete the same name of existing project and re run the project means if you are run the helloworld project then delete helloworld project from the device if you run in past then re-build project again.it worked for me.

Upvotes: 0

Avijit Nagare
Avijit Nagare

Reputation: 8792

Just close simulator and Re-Run project this work for time.

Upvotes: 0

Nischal Hada
Nischal Hada

Reputation: 3288

Stop the projects and re-run it then you will find the solution

Upvotes: 0

Jayprakash Dubey
Jayprakash Dubey

Reputation: 36447

This happens less frequently in Xcode 6.1 as compared to Xcode 6 beta version. Only solution is to Re-run your project. This seems to be bug and might be fixed in upcoming Xcode 6.2 version.

This persists in Xcode 6.2.

Upvotes: 0

Manthan
Manthan

Reputation: 3914

Reset the simulator content and settings and launch the simulator again.

That worked for me.

Hope it helps someone else also.

Upvotes: 0

kalyani puvvada
kalyani puvvada

Reputation: 496

You can select Debug in menu bar and select attach to process and select iOS Simulator. It worked for me.

Upvotes: 1

Jeremy Huddleston Sequoia
Jeremy Huddleston Sequoia

Reputation: 23651

This is a known issue and should be mentioned in the release notes. At present, the only workaround is to try again. Sorry. =/

Upvotes: 1

Related Questions