Hey guys.
I'm having this problem for 2 days now and I really don't know what to do anymore.
When I run the iPhone 4 simulator and click a specific picker, the app crashes with the
error: 'NSRangeException', reason:
'* -[NSMutableArray objectAtIndex:]:
index 4294967295 beyond bounds [0 ..
3]'
However, it doesn't happen with iPhone 3 simulator.
I know that NSNotFound is 2147483647, the longest 32bit int and 4294967295 is the longest uint 32bit but don't know what it has to do with it. -
Plus, if I run it on another user account on my Snow Leopard 10.6.4 it works just fine without giving me that crash and also, my coworker is able to run this app on his machine without having the crash too.
What can be wrong in my user account? I tried deleting the .pbxuser file form the project and having it recreate the file but without any success.
Does anyone have any ideas about this? Or what I can do on my user account that might fix this?
Thanks.
Try deleting if from the simulator, and then cleaning and rebuilding your solution.
Also, have you tried stepping through the solution one piece at a time to see what each object's value is as you go? It looks like something is not being initialized correctly...
Try deleting the app from the simulator and recompiling. It might be user data or defaults causing the issue.
Related
My IPhone app is suddenly giving a SIGABRT error message when I attempt to run it on my iPhone, before even the first line of the application delegate is reached. It runs fine in the simulator, and even restoring previously working snapshots give the same error when I attempt to load the application on the device.
I fiddled with the Product Name build setting and the data model prior to the problem occurring, but as mentioned, old snapshots that ran fine now won't load, suggesting that the problem isn't in the code.
I have tried restarting xCode, the computer, the iPhone and deleting the app but the problem is still occurring.
I am sure that the problem lies with the device
Any ideas what the problem might be or how I can fix it?
Taking on Till's suggestions I reinstalled iOS (well, actually I updated it to 5.1) and everything is working again. Thanks for the advice. I've no idea what went wrong, but at least its working again now!
I have an iPhone app that I'm trying to run on my phone via Xcode.
It installs and runs without an issue
I make a change in the source code (negligible, like an NSLog())
It installs without an issue
Running causes the error:
Error Starting Executable 'myApp'
Don't know how to run. Try "help target".
I uninstall the app, and reboot the phone
It installs and runs without an issue (until I make another change; then I have to repeat this dance)
Needless to say, having to uninstall the app, reboot the phone, and reinitialize the environment (i.e. set prefs) takes an unreasonable amount of time, and is probably indicative of a serious problem. The issue is, the only vague error message I receive gets me nowhere on Google. Where on earth could this issue be coming from?
With some help from #iphonedev, I figured it out. Turns out it's a glitch in iOS 5 beta. The way to fix it is to remove the device from Development Devices, then re-add it.
Yeah just restarting the iPhone with the lock and home buttons fixes this. Had it happen a few times to me
I'm not a developper, but a user of an iPhone (3GS, iOS 4.1, Jailbroken) which started to crash randomly last week on several app. If I'm right, it crashes randomly when I tap on the keyboard (texting, sending an email, search on Google...), so that's why the crash happens on several app I guess.
By crashing I mean:
- Either, the app close itself (Safari.app, Mail.app...)
- Or, the SpringBoard crash and the iPhone go on SafeMode
What I did before it started to crash:
- Weeks ago, I installed a Cydia Tweak to setup a Frecnh Keyboard, tweak I uninstalled after it started to crash, thinking it was because of it, but apparently it wasn't
- I installed a .deb manually with Cydia, everything went well
- I modified the /dpkg/status file in order to prevent Cydia from asking me for an app update, everything went well too (besides some description line which I had to delete)
Here are 2 Crash Log:
http://pastie.org/private/nuncku1absv3frk5f4tva
http://pastie.org/private/1lc9lfbhdagkynhsmwm6w
=> They talk about UIKit, does anybody know what is wrong and what should I do to fix the crash? I tried to look for on Google, bu I didn't find anything unfortunately...
Thank you very much for your help!
Thomas
Correct answer:
Get the package "Crashreporter" from Cydia (BigBoss Repo).
For Springboard crashes, you can ignore the warning at first start.
Select the most recent crashlog, wait a moment for the analysis.
The most likely suspect for the crash will be displayed first.
Get rid of that package, and retry.
One of our games "iCopter Classic", which was once in the top selling list and has 100K unique users everyday, is getting bad comments from frustrated users.
The problem they keep reporting is, "The app, crashes on launch" on many ios4 devices, irrespective of the hardware they run on. We have tested the game on iPod Touch 2g, 3g, iPhone 2g, 3gs, 4 and with many iOS combinations. But we were not able to reproduce the problem.
Our download count went down to 50% because of this problem and bad comments for past 3 updates. We fixed all iOS 4 related code and now clueless of what to do next to fix this issue.
We somehow got crash reports from one of the users which we are not sure how to point the bug.
NOTE: My doubt is on this part of the code. We are loading around 200 images with separate uiimage objects for loading flags of countries.
Crash log says:
Exception Type: 00000020
Exception Codes: 0x8badf00d
The first thing you need to chase up is the log file from the user, that will give you some useful information on what is going on.
You can symbolicate the crash log from your user (and get a readable call stack), by running the symbolicatecrash utility with the exact .dSYM that was generated when the application was first built:
symbolicatecrash -o .app.dSYM
SymbolicateCrash usually lives in:
/Developer/Platforms/iPhoneOS.platform/Developer/Library/PrivateFrameworks/DTDeviceKit.framework/Versions/A/Resources/symbolicatecrash
When I tried to upload a build on device it give the following error.
Your mobile device has encountered an unexpected error (0xE8000001)
I am unable to solve this problem. Can anyone tell me why this is happening?
Anytime i get an unexpected error i hard reboot my device by holding down the home and lock buttons until the apple logo appears. No idea what causes it, but the reboot usually fixes it.
This seems to be a bug that is puzzling many users. No idea what the error actually is, but on this forum people claim:
this error will require you to restore your iPhone/touch, either through Xcode's Organizer window or iTunes. No way around it".
This basically happens when there's a communications error between Xcode and the iPhone which leaves Xcode confused about the state the iPhone is in. (You can actually make it happen sometimes by unplugging the phone in the middle of installing a build.) As the error message's text suggests, turning the iPhone off and back on will usually clear the error. You may sometimes have to restart Xcode or even your whole Mac, but not often.
To all
The problem get solved. When I set provisioned profile of device. It works.
Thanks for your help & guideline.