title: Using CocoaPods with multiple projects
body: <p>I have a workspace that contains:</p>
  
  <ul>
  <li>myiPhone.xcodeproj</li>
  <li>sharedStuff/sharedStuff.xcodeproj</li>
  </ul>
  
  <p>sharedStuff.xcodeproj builds a static library that is a dependency to myiPhone.xcodeproj (for simplicity assume that each project has a single target).</p>
  
  <p>Now I want to add a library through CocoaPods that should be available to both projects.</p>
  
  <p>My Podsfile looks like this:</p>
  
  <pre><code>workspace 'myWorkspace.xcworkspace'
  platform :ios
  
  target :myiPhone do
      xcodeproj 'myiPhone.xcodeproj'
      pod 'MBProgressHUD', '~&gt; 0.6'
  end
  
  
  target :sharedStuff do
      xcodeproj 'sharedStuff/sharedStuff.xcodeproj'
      pod 'MBProgressHUD', '~&gt; 0.6'
  end
  </code></pre>
  
  <p>When I build I get these errors: </p>
  
  <blockquote>
    <p>diff: /../Podfile.lock: No such file or directory 
    diff: /Manifest.lock: No such file or directory 
    error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods
    installation.</p>
  </blockquote>
  
  <p>Anyone have a clue what's going on here?</p>
  
  <p>UPDATE:
  From the looks of it the PODS_ROOT variable is not set when the "Check Pods Manifest.lock" build phase is executed.</p>