title: Different App Icons based on Bundle ID in Build Phases->Run Script
body: <p>I had an idea to have both the App Store version of my application and Development version of my application on my phone. I have accomplished this by changing the bundle ID. However I was curious if there would be a way to write a script to determine what the Bundle ID is, and to change the app icon based on what the ID is. Any ideas on how to go about this? So far I have this script:</p>
  
  <pre><code>BUNDLE_ID=$(/usr/libexec/PlistBuddy -c "Print :CFBundleIdentifier" "${BUILD_ROOT}/${INFOPLIST_PATH}")
  NORMAL_ID="com.appName"
  if [BUNDLE_ID != NORMAL_ID]; then
      // Set testing app icon
  else
      // Use normal app icon
  fi
  </code></pre>