Skip to content

Instantly share code, notes, and snippets.

@snatchev
Forked from shazron/get_bundle_id.sh
Last active August 29, 2015 14:11
Show Gist options
  • Save snatchev/c0d1af12024212308463 to your computer and use it in GitHub Desktop.
Save snatchev/c0d1af12024212308463 to your computer and use it in GitHub Desktop.
#!/bin/bash
# Run this in the same location as your .xcodeproj file
plutil -convert json -r -o - `xcodebuild -showBuildSettings | grep PRODUCT_SETTINGS_PATH | awk -F ' = ' '{print $2}'` | grep CFBundleIdentifier | awk -F ' : ' '{print $2}' | cut -d'"' -f2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment