gdb debugger in xcode doesn't work - xcode

I'm trying to use direct commands to gdb through xcode's console window when the program is paused. But the (gdb) prompt just accepts the carriage returns, and does nothing. Has anyone encountered this? I'm on the latest version of Mac OS X (10.6.2) with the XCode 3.2 beta.

If using a beta best to contact the beta mailing lists as this is the sort of issue the developers want to know.
If using a beta the first thing I would check is does this work using the previous production version
Also note that you might be under a NDA and so can only discuss with the developers.

This is a bug in the software, or an incompatibility with some setting in my system. Formatting my laptop and reinstalling the software fixed the problem.

Related

Does Xcode 7.3.1 run on macOS High Sierra (10.13)?

Although I know that this Xcode version is quite old, my company's project still needs to use it and I didn't manage to make it ran properly on my company's mac.
Does anyone have faced this issue as well? Any idea would be very helpful!
ps. On my personal mac, with macOS High Sierra 10.13.1 Beta (17B25c), every time that I try to open Xcode 7.3.1, it crashes and doesn't even inform the reason.
It works on my machine... I know that doesn't help you but I just installed it and it opens ok. Maybe upgrade to full version?
After running Xcode 7.3.1 on MacOS High Sierra 10.13 VM, I can confirm that I can compile and run build on Simulator and devices with iOS6 & iOS7.
Unfortunately, there is no Cross-Compability-Guide to downgrade to older Development Environment or generell Software on newer Mac, because only minimum Requirements are listed in wikis like this:
https://de.wikipedia.org/wiki/Xcode
So, my tip on this topic is really to use older Hardware to test on matching Environments or try Virtualisation such as Parallels, Fusion or Virtualbox.There are differents in Virtualisation too. If some Virtualisation fails e.g. Virtualbox, maybe another Program (e.v. Parallels) does the job well.
I really use older Mac Hardware for testing older Software-Versions and that is the best tip I can give you on this topic. So its a good idea to have an older Hardware Repository to do this jobs, on which virtualization fails.
I know some Apple Developer which use some older Mac minis in their basement - remote connected - to solve problems like this.

xcode 8 not running

I installed the Xcode 8. But it stuck at licence agreement screen. I clicked agree and enter system password but Xcode stuck at same screen. Have anyone faced the same issue and their resolution.
OS Version 10.11.6 (El Captain)
I think I have faced a similar issue for an older version of Xcode. What you should do is to delete the app completely and try to reinstall it. If that does not work for you, try upgrading to the latest version of MacOS and try again. I believe this is a bug on Apple's end, but it shouldn't occur again if you try these things.
Also, make sure you are connected to the internet. If you are not, it may not be able to understand that you have accepted their agreement.

Is there an easy way to upgrade XCode Command Line Tools?

I'm currently on OSX Mountain Lion, but I'm probably going to upgrade my OS pretty soon, either to Mavericks or Yosemite. I'm looking to download command line tools for homebrew; however, looking through the various versions, I'm probably going to have to upgrade command line tools for new versions that are released, and especially if I decide to upgrade my OS.
I've looked at other discussions on StackOverflow that discuss updating, and the threads that I've looked at seem to suggest that uninstalling the old version and then installing the new version is the way to go. However, it seems that the main way to uninstall old versions of command line tools, as mentioned by this thread (How to uninstall Xcode 4.4 command line tools (Mac OS X 10.8 Mountain Lion)?) is using an unofficial and kind of hack-ish looking script.
Given that new versions are released fairly often and updating is required for an OS upgrade, making upgrading a pretty regular task, it would seem that there would be an easier/smoother way to upgrade. Is there such a way to upgrade? For example, would simply installing another version of command line tools over the previous version be sufficient, cleanly overwriting the previous version? Or is there a way to upgrade through command line?
Any help would be greatly appreciated. Thanks in advance!

Use LLDB to debug whill make xcode Noresponding

When I use LLDB on Xcode 4.6 to debug my program ,the app will be no responding and when I use GDB it is OK,
but In the new Xcode 5 there is only LLDB can be used
who can tell me how can I fix my LLDB or reinstall it?
thx
Please try this procedure
Remove old versions of Xcode
Upgrade to Xcode 5.0.1
NOTE: GDB is no longer supported. LLDB will be installed automatically.
Please use a compatible version of OSX (10.9, Mavericks).
If this answer helps please click the checkmark to accept the answer.

GCC without Xcode on OS X

I've just unwrapped my new MacBook Pro (yay!) and am now setting it up properly for development. Since I want to avoid clutter, I'm wondering if I really need to install the Xcode tools at all (I never use the IDE or Mac specific tools), since I'll install a newer version of GCC anyway, using MacPorts.
So, is there any benefit in installing Xcode? Is it necessary? What kind of set-up does it do behind the scenes? Basically: can I skip this or will it come back to haunt me because some Unix development tools just assume that OS X is always set up in this way?
In order to perform an easy and successful install of MacPorts, already having tools from the xCode installer is necessary. You only need the install option that places a copy of the unix/header files outside of xcode; everything else can remain uninstalled.
A friend of mine recently released this:
https://github.com/kennethreitz/osx-gcc-installer
Have fun :)
I tried this trick and I was constantly chasing missing header files and such. Just install XCode.
We primarily use the Xcode IDE for building Cocoa/Carbon applications. Xcode typically has different project templates (and project settings fixed accordingly). As long as you are not going to generate a Universal Binary or a framework I think you should be ok. As far as I am concerned, when I am too pissed with Xcode, I go back to the command line, set up the paths myself and start using GDB.
First of all, congratulations on the new MBP. I recently bought a 15" unibody myself. =)
You can safely skip Xcode installation, and you can install almost everything Xcode installs through MacPorts, except Xcode itself, of course.
However, I believe you'll find yourself installing Xcode one day anyway, and installing Xcode is much easier than installing all the tools (especially GCC) through MacPorts.
You can strip down the Xcode install quite a lot - when you install Xcode there is a "Customise" button where you can remove a lot of stuff (gigabytes worth).
You can also go in and delete stuff from /Developer/, for example the 10.3 SDK is about 150MB (I think), and if you're not writing software for that it's quite safe to delete. Obviously be careful when deleting, but if you break things, you can always reinstall the Developer Tools!
Apple now provides the command line tools as a separate download from Xcode. They work with Lion and Mountain Lion. You can download them from the Apple Developer Center.
(This is noted on the osx-gcc-installer GitHub page.)

Resources