Simulator and my iphone are not running my apps? - iphone

I have checked multiple times in my code there are no errors or warnings. When i install it in simulator or my iphone it doesn't get past the splash screen. It just quits and doesn't say anything about crashing.
Any ideas?

You should take a look at the crash logs for the device. After you sync it to your computer they will be stored at:
~/Library/Logs/CrashReporter/MobileDevice/<DEVICE_NAME>
Simulator crash logs are here:
~/Library/Logs/DiagnosticReports/
They have a file extension of .crash
See Here:
http://www.anoshkin.net/blog/2008/09/09/iphone-crash-logs/

Related

iOS Simulator could not find the SDK, SDK may need to be reinstalled

Here I am stuck in another problem,am working on an iOS Application today and as i run my Application for iPhone 5.0 Simulator got some weird issue on that simulator only.
There were two window pop Over alert on my MacBook Screen when i was trying run again and again getting same issue for that simulator only.that pop over alert windows showing below quotation.
"iOS Simulator could not find the SDK. The SDK may need to be reinstalled."
"The simulated application quit."
It seems that this issue occurring due to the improper installation of that simulator.
Please help me by suggesting related to this issue.
Whether i have to reinstall that simulator again on my Xcode or need something else.
Any suggestion would be appreciated from the bottom of my Heart.
I've seen this on coworkers computers and it was because they had dock icons not pointing to Applications/Xcode.app/Contents/Applications/iPhone Simulator.app
I would try launching the simulator from that directory or deleting the Application/Xcode.app and reinstalling from the Mac App Store.

Iphone App Crash on Running

I made a simple application on XCode 4.2 and Sqllite.
It runs on Simulator smoothly. I made its build and run on Iphone 4S with iOS 5.
it Runs and crash without any error.
Guide me to detect the problem.
Try debugging on the device in your app delegate or if need be in your main.m file.
Also check the Console app on your Mac.
It contains device logs you might use to learn more.
make sure about ur version. and did you have the provisioning profile and certificate installed to push the kit in the device?
if you dont have any provisioning profile associated with the iphone it wont let you push or run the kit on your device..
Has the app ever worked on the iPhone?
If so, you may have changed the datamodel, which would cause the app to stop working.
You'll have to delete the app from the phone, then re run it.
Connect your device to Mac, Open Xcode, Open Organizer inside xcode. Than see Devices Section, you may get your device name.. Than see Device Logs. Now you run your app in device only not from xcode to device.. you will get same Console output see in Organizer Device Log

App crashes on device and while using instruments only

I am encountering a strange behaviour, my app runs smoothly on simulator but crashes on device.
Also when i try to detect leaks using instruments it just crashes on both simulator and device.
I am totally stuck as i am not even able to generate any error message on console, also NSZombieEnabled is on in the settings.
I can see two possible reasons for the behavior you describe:
device is short on memory; (but you would see some processing in this case)
your app uses a newer SDK than what you have installed on your device (like using the SDK 5 twitter framework and then running your app on an SDK 4 device).
Specifically, in case 2, you would not see any log messages because the app would fail as soon as it tries to load the missing framework in memory.
In any case, inspect the device log in Xcode Organizer window to have more info about the crash. This is the only way you can understand what is happening.

app crashing on device

the app I've installed on an iPhone 3G device periodically crashes. I'm wondering if it's the device or the code. the code works fine on the simulator.
I have other apps from the app store that do the same thing. e.g. the stackoverflow app - whenever I do a search the app crashes. I've even had the iPod app crash too.
I've restored the phone a few times and still the same thing. I'm getting ready to upload the app to the app store and was wondering if anyone had any tips to make sure that my code is not the problem. it's difficult to tell because there are no errors in the simulator or memory leaks in Instruments
thanks in advance.
You can be guaranteed that it is your code. Run it in the debugger on the device and see where it is crashing. If you are getting EXC_BAD_ACCESS use the following to help track it down
http://www.cocoadev.com/index.pl?NSZombieEnabled
It most certainly is your code that crashes.
Run in debug mode and watch the console (real debug mode, not only the debug target).
Also, you can (and should) grab the crash report from the organizer. You can also watch the device's console there.
Are you sure you are not running out of memory?
the easiest way to see if this is your problem is to implement didReceiveMemoryWarning method of your controllers and check if they are called.
In the simulator you can simulate a memory warning but I am not sure if even in simulator app will crash if memory is not released. (I believe not)
Also run your app with instruments, using allocations: Run > Run with performance tools > Allocations.
And use your app for a while and you will see. ;)

NSLog outputs to console when running on iphone simulator, but not when running on device

Has anyone heard of that before? It's making me crazy.
It happens only in the main app I'm working on. Other apps do show NSLog's in the console when running on the device.
I've tried re-installing the sdk, rebooting the computer, cleaning, deleting the build folder, rebooting the phone, a million things. I know the nslog code gets run because the exact project shows them in the sim. Also, even nslog's surrounding the code that loads the initial view in appdelegate's applicationDidFinishLaunching do not display when run on the device.
The app runs fine on the device, but I get no nslog output to the console.
If anyone can help it would be so greatly appreciated!
--Steve
Are you looking in the Console application, or in the Xcode console available through the Xcode Organizer? The former is used by the simulator, the latter is used for devices.