title: xcodebuild different provisioning profile for target dependency
body: <p>I'm trying to build my app with xcodebuild:</p>
  
  <pre><code>xcodebuild -workspace "RG.xcworkspace" -scheme "Production" -configuration "Release" build CONFIGURATION_BUILD_DIR="${TEMP_DIR}" PROVISIONING_PROFILE="1234-5678-9098-7654-3210"
  </code></pre>
  
  <p>My scheme has two targets. One target is the app, the other is the app extension (I built an extension for Safari). The app extension is a target dependency. Each target requires a separate provisioning profile. I don't know how to specify the PROVISIONING_PROFILE for the dependency. I'm getting this error, as expected:</p>
  
  <pre><code>CodeSign error: code signing is required for product type 'App Extension' in SDK 'iOS 8.1'
  </code></pre>
  
  <p>StackOverflow and the man page for xcodebuild don't seem to come up with anything. Does anyone know how to build a project with xcodebuild that relies on two provisioning profiles?</p>