Categories
Blog

How to fix gyp: No Xcode or CLT version detected

xcode-select -print-path
/Library/Developer/CommandLineTools
sudo rm -rf /Library/Developer/CommandLineTools
xcode-select --install
Categories
Blog

compiler errors – Cannot compile ruby 1.9.3 – Stack Overflow

With Xcode 4.6 I was also getting this problem. I installed the command line tools which made gcc available in /usr/bin/gcc.

I managed to get it to work using:

rvm install 1.9.3 --with-gcc=gcc

NB. I dont have homebrew installed.

via compiler errors – Cannot compile ruby 1.9.3 – Stack Overflow.

Categories
Blog

如何打开被 Xcode 优化过的 png 图片

被 Xcode 优化过的图片大部分程序是无法打开的,如果想查看这类图片,需要:

/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/pngcrush -revert-iphone-optimizations -q input.png output.png