Xcode 7 causes iPhone to freeze

iOS 9, iPhone 6 Plus


Running my app from Xcode 7 works great the first time. Then I stop it, make some changes and run it again - this causes the phone to freeze up completely.


Anyone else encountered anything similar? Any ideas why this might be? Other than some bug in either iOS 9 or Xcode 7.


Thanks!

Yep.

Seeing this many times a day with different apps. Sometimes the phone comes back after 30-90 seconds, other times it just reboots with Apple logo.


Generally if it freezes, it doesnt come back quickly.

I'm experiencing the same problem on a 2nd gen iPad Mini, runs fine the first time, but on the 2nd or 3rd run it almost always freezes, requiring a hard reset of the device.

This also occurs for XCode 6.x, so may be related to more basic XCode interaction with iOS9.

Phone was not recognised by organizer and then got the apple logo. Afterwards phone is having network problems, battery guage seems to be stuck at 100%, unable to reboot the phone (either with sleep wake button or via Accessibility)

I have stumbled upon what I think is a reliable workaround for the time being (at least it is working on my iPad Mini 2nd gen). Try this.


XCode Version 7.0 beta (7A120f)


1. On the 2nd run of your app in XCode, which would normally freeze the device, put your finger anywhere on the iPad's screen before hitting Run in Xcode.

2. While your app is compiling, keep your finger on the screen and slide around continously, never letting your finger off the screen, even though it will hang a little bit, keep sliding around. Keep doing this until your app would normally launch on the device, then take your finger off the screen.

3. The app should launch now as normal.

4. Rinse and repeat for each successive build.


Not sure why this is working, perhaps for some reason the device doesn't freeze as long as it's receiving touch events? I'm now able to run the app consistently without freezing up and having to hard reset the device.


Hopefully this helps someone else out there get some work done without the irritating freeze and reboot cycle slowing you down considerably, maybe even save a few devices from being thrown out the window in frustration. 😉

Wow, that seems to work fairly well. Beta software always brings some interesting bugs...

Yeah, Definitely an odd one. Glad it's working for you as well.

Just wanted to stop back and say this appears to be fixed in iOS 9 beta 2 with XCode 7 beta 2, at least for me.

Xcode 7 causes iPhone to freeze
 
 
Q