title: Create XCode workspace and pin a project from command line
body: <p>I found that it is possible to create XCode project from command line with a help of CMake (are there any other options?). Is there any tool to create XCode workspace and pin projects into it?</p>
  
  <p>If not, can I create it manually? My current version of XCode (7.3 beta) makes a workspace that consists of below file structure:</p>
  
  <pre><code>WORKSPACE_NAME.xcworkspace/
    contents.xcworkspacedata
    xcuserdata/
      USER_NAME.xcuserdatad/
        UserInterfaceState.xcuserstate
  </code></pre>
  
  <p>Content of contents.xcworkspacedata looks straightforward and I guess this is the file that pins projects into workspace.
  UserInterfaceState.xcuserstate is a binary file that can be generated when workspace is opened in XCode.</p>
  
  <p>Summing up, if there is no command line tool for creating workspace and pinning projects into it, can I just generate proper contents.xcworkspacedata file or should I do something more?</p>