In your Xcode Target, tab "Build Phases", edit your Receigen shell script. Replace the declaration EXPANDED_BUNDLE_ID
that looked like:
EXPANDED_BUNDLE_ID=`eval \"echo $BUNDLE_ID\"
simply by the variable PRODUCT_BUNDLE_IDENTIFIER
(introduced in Xcode 7)
EXPANDED_BUNDLE_ID=$PRODUCT_BUNDLE_IDENTIFIER
(you can also delete the old, now needless, declaration of BUNDLE_ID
)
Your script should look like this:
# Receigen binary
RECEIGEN="/Applications/Receigen.app/Contents/MacOS/Receigen"
# Extract Info.plist information
INPUT="$INFOPLIST_FILE"
BUNDLE_VERSION=`/usr/libexec/PlistBuddy -c "Print CFBundleShortVersionString" "$INPUT"`
# Expand information if needed
EXPANDED_BUNDLE_ID=$PRODUCT_BUNDLE_IDENTIFIER
EXPANDED_BUNDLE_VERSION=`eval "echo $BUNDLE_VERSION"`
# ...etc...
Note: found this thanks to @mcgyver42's answer and this question