title: Can an Xcode .mobileprovision file be 'installed' from the command line?
body: <p>I'm trying to automate the process of building apps for our clients using bash scripts running on a Mac Mini Server (OSX 10.7). </p>
  
  <p>My script is based on the spectacularly useful script from github originally posted at <a href="https://gist.github.com/949831" rel="noreferrer">https://gist.github.com/949831</a></p>
  
  <p>I'm building the app using xcodebuild, and then signing and embedding the mobileprovision file using xcrun.</p>
  
  <p>When I do all this with a mobileprovision file I manually installed into Xcode using the GUI (e.g. double-clicking) it works fine. If I simply try to use a mobileprovision file copied onto the server with SCP it fails (Code Sign error: Provisioning profile '123abc123' can't be found.) </p>
  
  <p>Presumably this is because the file isn't 'installed'.</p>
  
  <p>Is there any way to install the mobileprovision file from the terminal? I'm using SSH so using things such as the 'open' command won't work.</p>
  
  <p>Thanks!</p>