Hello World causes Iphone 5s to freeze - ios

I recently began going through the official Apple documentation and tutorials to learn iPhone development. I got my Iphone 5s a couple of days ago, but the sample ToDo list app that I'm making causes the device to lock up randomly when I try to test on the device. For example, I if I make a chance to the code and build/run it on the device, it will work. However, as I keep updating the code and testing it, eventually it will just open up my app on the device as a complete black screen, and freezes. The home button then no longer works, no touch events work, the only think I can do is to hold Home+lock button until the device shuts down.
This cannot be normal, can it? I mean, its just a basic app, what could be causing it?
Attached is the error that shows in xcode, and also a screenshot of the Iphone when it its frozen. Surprisingly, I was able to use the screenshot functionality on the phone... :/

Please check whether you are using a distribution provisioning profile/certificate to sign the app. If you plan to debug the app on the device (use breakpoints etc.), you should sign it with a development provisioning profile.

It only happens sometimes, so it's not provisioning related.
It causes a message to popup in XCode itself, so it's not code related.
I had the same problems before (not that often really...). What I did was
Restart the device
Remove the app from the device
Clear the project builds (CMD SHIFT K)
Restart XCode.
Build & Run again
I actually haven't seen this for a while. I always thought that they fixed the bug. Hope this helps!

Related

IOS Simulator user interaction not working?

My Xcode ios Simulator lost the user interaction completely. Even the hardware buttons like Lock button, volume button itself not working. My app is open in simulator but i dont interact with it. I have tried a lot of solutions even i removed the Xcode & Simulators completely. But it doesn't work. Please help already i wasted a week for this week.
You can not access some component in simulator . Please try to access with real device. Also run the project into a real device for the solutions.

Unity3d always shuts down when launching on iOS

I have a weird bug with my game on iOS platform.
When I build it from xCode it works great no matter how many times I run it. When I leave that build on iPhone 6s for one day it can't be opened anymore. When I click on icon it only shows black screen and then returns to home screen. If I double click menu button, the game is in active tasks and I can see that the game was loaded. But it cant be opened. Its like its always minimised or that graphics are failing.
I am using Unity 5.3.4f1 and graphic api is set to OpenGLES 2.0.
Has anyone else run to a problem like this?
Any suggestions or fix?
Edit:
So after testing it turns out it only happens with build from xCode and not with version that is on app store. So I guess it has something to do with provisioning profiles or similar.

How can I make sure that the iPhone simulator in Xcode will move past the the startup screen every time I use it?

When I run the iPhone simulator, sometimes it doesn't move past the opening screen, and sometimes it does.
What I am calling the opening screen is the screen which has the app tittle on it.
I have tried closing and re-opening it. But it doesn't seem to solve the problem, as it still comes back.
I am using the new Xcode beta but this problem also happens to me often in Xcode 6.
The simulator in my opinion is a little buggy to me. This seems to happen to me a lot the first time I run the simulator. After that it seems a little more stable.
This happens to me too sometimes. Simply stop and directly press the "Run" button again.
You can also try to change the Device or uninstall your app on the selected device.
Also try to close the Simulator and open it again and try to run your app after that
My answer is you cannot make sure about that, since it is just a simulator.
This happen to me to when i use xcode6 sometimes, but when i use xcode 5.1.1 it is working perfectly.
I think xcode6 do not stop the current running app before running the other instead it just override the current "same" running app. here is my theory as i observe it.
Assuming simulator is running.
in XCode 5.1.1:
Stops the currently running app > Compile > Run
but in XCode 6:
Compile > Override the same running app
But you dont want to worry about that so much, as long as it doesn't appear in actual device it is all good.

App fails to launch and results in a black screen on device with home button unresponsive

Im having problems with Xcode timing out to installing the app on my device. The problems persists even if using different devices. Usually 4/5 tries will result in a black screen.
Xcode says successful and the app opens up on the device, but the screen is completely black and the device stops responding.. only a hard reset works.. the home button isn't responsive.
You can however hear that someone is calling you, but you cannot answer the call.
I have no idea of whats wrong, because it builds completely fine.. Any idea on what might be wrong here?
The error Im receiving is:
error: failed to launch '-- timed out waiting for app to launch
Update:
Someome mentioned to me that it might be a faulty cable, but I get the same black screen when downloading the uploaded app from hockey app.
Often this is the result of building the app in debug with an ad-hoc or release configuration. There was also a bug early in Xcode 5 where it would hang as well, I think this is fixed in the most recent update.

Xcode adhoc provisioning

I just distributed my first ad hoc provisioning app to my iPad via iTunes and all seemed to have worked fine, except the fact that my app does not show an icon on the iPad, only a silver button.
When I start the app, the screen goes black for around 2 seconds, then the "desktop" is shown again.
I am not sure how I should go on now. There isn't any such thing as a "log file" on the iPad, is there? The reason why it doesn't really start might have a hundred reasons, I guess.
On the simulator it worked fine.
Thank you very much!
I think you've got the answers you need in the edits, but to answer the original question.
You only need to add UDIDs in the portal, nowhere else.
You can get crash reports from an AdHoc device. Sync the device and then look in ~/Library/Logs/CrashReporter/MobileDevice/
Alternatively, if it is your device, connect the device and use the Devices panel in the Organizer.
The plain white icon means you don't have an icon set for the deployment device. I've never had this after setting an Icon. Check the target summary for any icon errors, they're normally shown next to the icon space.

Resources