Category Archives: osx

After upgrade to OSX Mavericks

After upgrade to OSX Mavericks, and reinstall xcode, if make some project, You’ll get the error a bit more…

“Agreeing to the Xcode/iOS license requires admin privileges, please re-run as root via sudo.”

– What?

Ah! Ok, X-code was obviously re-installed with OSX Mavericks.

sudo xcodebuild -license

This allowed me to view the X-code licence, and then agree to the terms. Voila, that’s it. Everything worked just fine after that.

osx (mac) 下面在 /home/新建目录或ln -sf 目录问题


因为平时都是用的 linux, 很多项目的配置都是基于 /home/allex/
但是在mac下用户目录为 /Users/allex
想到直接把 symlink 过来

ln -sf /User/allex /home/allex

系统始终提示: foldername: Operation not supported

google logs:

You need to disable automount. Use sudo vi /etc/auto_master to comment out the /home line. My auto_master file looks like:

# Automounter master map
+auto_master        # Use directory service
/net            -hosts      -nobrowse,hidefromfinder,nosuid
# /home         auto_home   -nobrowse,hidefromfinder
/Network/Servers    -fstab
/-          -static

NOTE: The /home directory is a link to a network drive. If the drive doesn’t exist on your network, a dummy drive is in its place with zero capacity. You cannot place anything in that location.

Mac OS X 日常技巧总结(continuous updating)

Restarting the Mac OS X Dock, Finder, Spaces or Menubar

The Finder crashed:
killall -KILL Finder
(you can also restart the Finder by option (=alt) + rightclicking the Finder icon in the Dock and selecting Relaunch. It doesn’t always work though.)

The Dock/Spaces crashed:
killall -KILL Dock

The Menubar crashed/refuses to be clickable:
killall -KILL SystemUIServer

Clean Up Your Mac’s “Open With” Contextual Menu

/System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Support/lsregister -kill -r -domain local -domain system -domain user