CANT TEST APP ON IOS DEVICE

I just started on coding in swift more often than objective c. My game works on all the simulators but not on my actual phone. I am updated to the latest ios. XCode just luanches the luanch screen but it seems to just stay at the launch screen like its frozen. Some one please help me fix this.

Hello CalenMac, Without seeing any code for your app, naturally I cannot give specific advice; and I'm going to try not to pester you with questions like, 'did you try X? did you try Y?'. So here's what I would do:


First, I'd try deleting my app off the phone and then rebooting the phone and killing xcode and restarting xcode and completing deleting the build folder for the project (in the Projects window) and then building and running on the phone.


If that doesn't help, then create a brand new project completely separate from this app and just use a simple Xcode template for single view app or sprite kit game (specifying Swift as the language, of course) and when Xcode shows me the project, immediately run it on my device and see if it works. If that doesn't work, then I could be pretty sure there's a problem with iOS or Xcode or Swift or something like that. But, if it does work, that means theres something which I added to my _real_ app which is causing it not to work.


If the barebones project works, then I've got to figure out what I have added to my _real_ project which is causing it not to work. At that point, I would consider two courses of action, 1) set a breakpoint at the earliest possible place (like in the app delegate, application did finish launching method - can't remember exact name, sorry). If it doesn't reach that breakpoint, well that is really mysterious. If it does reach that breakpoint, then set a break someplace further along and see if it reaches that, and keep going until you figure out where it is hanging. Or you could run it in the debugger and let it start and sit for a few seconds, then hit the pause button and try to work out what it is working on. 2) slash-and-burn: comment out great swathes of code to try to get it to do something. When it does do something, carefully put back small amounts of the commented-out code until it stops working, then you know the code you just put back is the problem.


I hope something here can help you get started in figuring out what is wrong, and please let us know how you get on.

CANT TEST APP ON IOS DEVICE
 
 
Q