I have sample application it works fine. When i set breakpoint in my project it didn't step over from breakpoint, the application hangs with that break point its really hard to find what the problem is. With out break points its work fine.
I want to test some variables with breakpoints in simulator 4.0 debug can anyone help me?
Thanks in advance....
I had this issue until I upgraded to the latest XCode 4.5. Its seems to have solved the XCode - Not Responding issues and Crash. Hope this will help.
Related
I am confused, whenever I have an error in my Swift code, the building of the app in the simulator fails.
Today, even though I am pretty sure the code is correct (and it works), I see a few errors in my code, and even so, the app-building is successful in the simulator.
Anyone has run into this before? How can I fix it?
Thanks
screenshot
This isn't a solution, but have you tried restarting Xcode?
What do I do about this?
Xcode launches the app on the device and it starts up, but when it has started the image below pops up and when I click "OK" it crashes the app.
The simulator has no issues, but I cannot read the console in regards to debugging because of this. There really is not a reason why this should be happening.
Also I have no idea what code could cause this. I have no errors or warnings and everything has been fine right up until yesterday.
If there is any code or more info you need to help me with this, please ask:-)
I have removed the app, restarted the devices and my mac.
Ok I found the answer here:
Same issue here
Basically you can't do debugging on a Ad-Hoc profile:-)
I was propted by apple to upgrade my debugger settings yesterday, In doing so I have some how broken xcode.
When ever I now try to load an application (dosn't matter what version of the simulator I am using) Xcode and my simulator both freeze up. then the rainbow loader just sits their constantly turning over.
Is there any way to fix this? I'm really stuck and don't know what to do as it dose not seem like a very common problem from all the research I have done to fix this.
I am running the latest version of xcode 4.3.2 (4E2002) and using 5.1 simulator.. and have tried 4.2 simulator to the same effect.
any help in getting my xcode back up and running would be massively appreciated.
Okay so I figured out what the problem is but not a real solution...
Basically the error started happening when I was prompted by xcode to update my debugger to the LLDB version. this is what cause my simulator to keep crashing xcode.. or vice versa honastly I still dont know why this is happening but yea...
so.. what I did to get this simulator working again was go to Product>edit scheme> debugger then changed from LLDB back to GDB.. this solved my issue for now... however I need to figure out why LLDB is not working and what I should do leading into the future. hope this helps someone else.
I have facing this problem too but I got a solution either you said its temporary ... some time ios 5.1 simulator hangs when I shifted to the ios 4.1 sdk its a common practice for the developer to check it I have simply first close the simulator and again start it and then reset all the content in the preference area that its resolved my issue .. check it might be you also got resolve for apply this trick or technique.
Thanks
In my case, was too many old breakpoints tracks (788), even to deleted files, I just clean it and now it runs perfect, I hope it helps.
A picture to illustrate:
I am unable to debug my project as the breakpoints are not working.
I have enabled breakpoint option but still its not helping me.
I found some links but they are for the Xcode3
And for Xcode4 I found this site but it doesn't have any solution.
What should I do ?
Open Scheme drop box
Click on Edit Scheme
Click on Run YOURAPP.app tab on the left
Set Build Configuration to DEBUG
Set Debugger to LLDB
Enable breakpoints and Run the app
Ran face first into this problem after updating to iOS SDK 6.1. After a few hours of swearing and digging through settings, it seems to only happen when using LLDB. Switching to GDB has bestowed upon me the ability to use breakpoints again. FWIW I've had other issues with LLDB not correctly following vtable pointers. Good luck.
Try rebooting your device.
I had the same problem with Xcode4; although, I seem to remember it working before upgrading my phone to 6.1.
Anyhow, the suggestion here to reboot my device solved the problem. Breakpoints are again working for me.
When I start my iPhone application it boots up fine, shows the first settings screen and all after I have given input and pressed save, the debug window says
Debugging Terminated
without any hint to why in the crash logs.
First I thought it was my programming, but then I went ahead and tested the app on multiple 'real' iPhones and it never crashed.
Why does the simulator keeps crashing?
A common cause of crashes on the simulator but not the device and vice versa is using precompiled libraries that were compiled on the other hardware. Check if you've got something compile for ARM that is trying to run on the Intel.
In XCode try Build > Clean All Targets
Have you tried resetting the simulator? iPhone Simulator -> Reset Content and Settings
Then do a clean build of your project.
Annoying :)
Put NSLog statements around where you think that it's crashing and look at the output. That shoud give you more of an idea where the crash is occurring.
If that doesn't help, post the lines causing the crash in the question and see if anyone can help then.
Sam
This tends to happen when you declare a variable and then use it without actually creating it. I would check variables you are using to make sure you are actually creating them before using (i.e. with alloc or the convenience methods).