if any developers end up being in need about this, here are some tricks.
-the xcode-select --install command maybe does not work so direct download is necessary from Apple website.
If you see "Can't download the software because of a network problem" then go to the website for
Xcode CommandLineTools
paying attention to pick the right release that the OSX version on your machine is compatible with.
-then you can get errors after the "sudo gem install cocoapods" command.
it deals with something like
In file included from /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/include/ruby-2.3.0/ruby.h:33:
/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/include/ruby-2.3.0/ruby/ruby.h:24:10: fatal error:
'ruby/config.h' file not found
#include "ruby/config.h"
Solution is at
but you may also need to edit the ruby.h in the deepest folder, where also the config.h should be located, so that
it reads
#include "config.h"
instead of
#include "ruby/config.h"
Warning there are two ruby.h files. One of them is the only h file in the upper level folder. I did not edit it, while
I edited the one that is one level deeper, where also the config.h is expected.
The SO solution make two aliases. The first alias is what I am talking about, I ended up copying the file instead of aliasing but I think because I attempted to create an alias manually in the wrong way. It is likely that the provided command works.
Then also a second alias has to be created, I copy/paste the command.
You may have to check the versions when adapting the command if different.
Regards