You can try to download bittorrent version of Xcode but there's always a risk of downloading files from unknown source and you may not be able to find the latest version, as I could only find Xcode 9.
Side note: In the past, I would've recommended a tool called ADCDownload, which allows you to resume downloads from Apple Developer website. But it hasn't ...
There are 2 steps for clean removal
Delete /Library/Developer/CommandLineTools directory (as mentioned above).
Reset to default command line tools by running
When command line tools are installed, the path for command line tools is set to "/Library/Developer/CommandLineTools". This can be checked by running
On any system with gcc, you can find out the location of system include files with the command gcc -v -xc++ /dev/null -fsyntax-only. This gives you all the paths for #include. (gcc is included into xcode)
If you will not find out the path /usr/local/include in the list, then you need to correct it with the command sudo xcode-select --switch /Library/...
Apple has an installer for C++ libraries you can install.
If you have Xcode installed (or don't mind downloading it from the App Store) run it to validate all the command line tools are installed as well as additional tools. Lastly, once these are installed, check for normal software updates to ensure the command line updates are ...
The latest Xcode version that is documented by Apple to include the iOS 5 SDK is Xcode 4.3.3 for Lion. Apple doesn't document in the release notes whether it is also included in Xcode 4.4 and Xcode 4.4.1. However, by Xcode 4.5 it is definitely not included anymore.
The important thing to notice here is that you actually do not need to have the iOS 5 SDK in ...
Honestly, your best bet is to find a used Mac that can run Mountain Lion. It would likely be cheaper in time and $$ to go that route. The most recent Macs that can do that are 2007, 2008, 2009 models. I found a number of these systems on eBay for way under $100 bucks.
Failing that you might be able to get one of the virtualization packages (VMWare, ...
As is evident from the output of brew config, your installation of Homebrew is pretty outdated. Also, as mentioned in your comment, you have a proxy active in your system. This explains why Homebrew installation is failing to connect unable to the Homebrew software's server counterpart via port 443, which hosted on GitHub.
Follow the instructions in the ...
Make sure you have connected your iOS device to your Mac and selected it as the run destination.
Yes, you do not need a paid membership to the Apple developer program. You can register for an Apple developer account for free and can build and run apps on a maximum of upto three devices.
The first place to start would be checking the health and presence of the file in the dyld error:
Or fix the linking errors by changing what libraries the project expects.
Add the -isysroot flag to your compile flags to automatically include the appropriate SDK header directory and avoid the need for the /Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.14.pkg package that will "in a future release, ... no longer be provided."
Please consider using Homebrew to install rbenv instead of using system Ruby. Then configure it to your liking and get the gems you need. Please see this Homebrew, Ruby, and Gems article for details.
To install Homebrew, if you have not yet, or if you had trouble with it, please follow this Install homebrew on MacOS Mojave article or find a similar for ...
16 GB might be enough to download Xcode, but it might not be enough to install Xcode.
Xcode is delivered as compressed .dmg or .pkg file (I can't remember quite which) and it would be uncompressed upon installation.
16 GB is not a lot of space to run macOS in general.
If you need more space, you might use an app such as OmniDiskSweeper to see if there's ...
Mobile app development using Xcode. Single Graphics vs Dual Graphics?
A Mac with dual graphics (integrated + dedicated) is preferred when working on graphic intensive projects.
Generally speaking, a more recently introduced model is equipped with better internals (such as newer generation of processor and faster RAM/internal storage).
You should pay ...