I am currently running the xcode 4.3.1, i found that if I don't do any code change and rerun a program with the same set of breakpoint set before, xcode won't stop at the breakpoints anymore. My fix at the moment is to put in some junk NSLog statement which is very time consuming. Did anyone has the problem before? Am I missing some setting in preference?
Have you checked to make sure the "breakpoints" button is still pressed.
Otherwise you can try restarting xcode/your machine. Sometimes xcode starts doing weird things if you leave it running.
Last option would be to actually just reinstall xcode.
The problem you are facing seems to be an xcode issue and unrelated to your actual code. I created a small app and put breakpoints but was unable to reproduce your issue.
Related
I can no longer access any storyboards or XIBs in my project. As soon as I do,Xcode starts building and when it gets to Signing product it just hangs. I left it open for about half an hour, nothing happens. I need to Force Quit every time.
Signing works otherwise thou, that's the weird part. I can build normally, I can run on simulator, device, I can archive, everything is fine, EXCEPT when I open an IB file.
I tried all the usual, deleting DerivedData, cleaning everything, nothing seems to work. This is extremely frustrating and I can't find anything on the subject.
I'm using Xcode 8.2 beta (8C30a) currently, but it's also happening in the release 8.1.
Can you file a bug report with a bit more info? Please provide a copy of the build log and the output of sysdiagnose Xcode (it will produce an archive).
http://bugreporter.apple.com/
Thanks!
I'm experiencing a very strange error: my Xcode is freezing when I quit a certain storyboard of a certain project.
When i open Xcode, the xib shows up normally, I can even edit it and save it. But when I'm trying to open another file, any other file, it freezes forever.
I tried to delete every temporary files as described here, or here, or here, but the problem still remains. Ah, and... re-create my xib is obviously not an option...
Any other idea?
EDIT:
When I delete myProject/[project.xcworkspace/]xcuserdata (s), I can navigate in my project as usual while I don't open the storyboard. otherwise my problem comes again.
Since my post about this problem, I saw it on other projects. I'm pretty sure this was linked to custom fonts in xib, because it often happened after an Xcode bug rendering custom fonts.
Few days ago I downloaded the last Xcode version, 6.3.2, and the problem did not bother me again. So it seems to be resolved.
I've got this weird problem from last night, where I cannot open Xcode anymore!
It is stuck with an empty tab loading view, and is just not responding... :-/
I have deleted Xcode4 and re-installed, it keep giving me that same problem... And also tried with Xcode 5, and still.... so I guess the problem is somewhere on my computer... What can I do?
Really need to fix this for work.
Found my solution on a similar linked problem :
Xcode freezes on startup while loading project
Due to the restore feature, all the windows you left open in a given application remain open when you relaunch it. To avoid this, discard the previously open windows by holding the option key while pressing CMD+Q. Try starting Xcode and quitting it with option held before it's had a chance to open your windows, then re-launch it and it shouldn't try to open the windows.
Fixed the problem for me.
I'm having some issues when debugging my OSX app in Xcode. After setting a breakpoint I use the gdb console to find values of a variable like:
po myTimer
This works. However, I will then terminate the app by hitting the stop button in Xcode. At this point Xcode goes crazy. It will usually retype what I put into the console while changing through different windows so that my code gets mangled with a bunch of "po myTimer" kinds of things. Has anyone else seen this issue? Is it a known bug? If so, are there any workarounds?
You'll just have to get used to the oddities/crappiness of Xcode, for the most part. Sorry.
I keep getting this error when launching my app on the iOS Simulator:
Couldn't register com.mycompany.MyApp with the bootstrap server. Error: unknown error code.
This generally means that another instance of this process was already running or is hung in the debugger.
I've read other reports of this error and it seems there is no obvious fix for it (restarting the iOS Simulator, restarting Xcode etc..)
At this point here's a list of things I've tried:
Restarting the Simulator
Restarting Xcode
Rebooting my machine
Deleting my app's Derived Data, and Cleaning
Deleting the iOS Simulator App Support directory
Reverting to a 2 weeks old version of the app (which was working 2 weeks ago)
Deleting the application in the Simulator (by clicking-holding on it and hitting the X button)
Upgrading Xcode form 4.1 to 4.2, and running the app both in iOS Simulator 4.3 and 5.0
Nothing worked, I still get the same bootstrap error.. Any (and at this point I really do mean ANY) suggestion would be appreciated.
Edit: Just wanted to add that the app runs fine on a device. I only get this error on the simulator...
As the GDB said:
This generally means that another instance of this process was already running or is hung in the debugger
So find out it and kill it. ;)
I restarted the mac, and it run successfully.
Tip: Well, this may be not work sometimes, so I strongly suggest that you press cmd+. to make sure that you do have stopped the simulator (or device). I find that in most cases the simulator (or device) will not stop exactly when it crashes. I rarely met this issue again with pressing the cmd+. every time it crashes or even just normal exit. Hope this will be helpful. :)
I just closed my xcode & restart my device(ipad2) and it works for me :)
You can try this :: Couldn't register with the bootstrap Server
Another solution, go to clear the memory of the iphone simulator
Simulator > recovery content and setting
then run the program again.
i just change the identifier and the app can work again.
I had to change my bundle identifier finally
No matter you reboot all devices and cleanup all , it gets stuck hard in the debugger..
don't know how to clear it..
As I experienced, device (or simulator) restart does solve the issue,
BUT it would be better not to couse it.
Also my experience is that:
You can find the place of crash by cousing it. In such time developers usually press "STOP the running scheme" this could cause zombie process stuck in device.
BUT
if you press "COUNTINUE program execution", debugger will terminate the process, it will not become a zombie.
I had this error too and I noticed that it works for me if you close the simulator and stop the program and then change your company name.
I don't know why but it works for me.
I opened Activity Monitor and searched for my app name, and found another instance of it listed. I used Activity Monitor to quit that instance, and the problem went away for me.