BUGFIX: xcode dir should be created before being used.