title: xcodebuild will codesign with Xcode 6 and alternate bundle ID but not with Xcode 7
body: <p>Our CI server does a daily ad-hoc build of our app by swapping in a different bundle ID like this:</p>
  
  <pre><code>/usr/libexec/PlistBuddy -c "Set :CFBundleIdentifier com.example.app.daily" \
    app/app-Info.plist
  </code></pre>
  
  <p>and then building and archiving with xcodebuild:</p>
  
  <pre><code>xcodebuild \
    CODE_SIGNING_REQUIRED=YES \
    CODE_SIGN_IDENTITY="$DEVELOPER_NAME" \
    PROVISIONING_PROFILE="$PROFILE_UUID" \
    -sdk iphoneos \
    -workspace "$XCODE_WORKSPACE" \
    -scheme "$XCODE_SCHEME" \
    clean archive \
    -archivePath "$ARCHIVE_PATH"
  </code></pre>
  
  <p>with Xcode 6 this worked perfectly, but in Xcode 7 we're getting this error:</p>
  
  <blockquote>
    <p>Code Sign error: Provisioning profile does not match bundle
    identifier: The provisioning profile specified in your build settings
    (“Daily AdHoc Profile for CI Servers”) has an AppID of
    “com.example.app.daily” which does not match your bundle
    identifier “com.example.app”.</p>
  </blockquote>
  
  <p>It's as if Xcode 7 isn't seeing that we changed the bundle ID. Is it looking somewhere else?</p>