Skip to content

Instantly share code, notes, and snippets.

@brightredchilli
Created September 23, 2015 16:14
Show Gist options
  • Save brightredchilli/ca63430518f0daa4dfa9 to your computer and use it in GitHub Desktop.
Save brightredchilli/ca63430518f0daa4dfa9 to your computer and use it in GitHub Desktop.
Remove CFBundleExecutable from pods
#!/bin/bash
# The purpose of this script is to remove the CFBundleExecutable script from all
# third party dependencies that dont'actually contain executables. This appears
# to be a new Xcode 7 requirement.
KEY='CFBundleExecutable'
GOOGLESIGNINPLISTPATH="$SRCROOT"/Pods/GoogleSignIn/Resources/GoogleSignIn.bundle/Info
if defaults read $GOOGLESIGNINPLISTPATH $KEY
then
echo "Removing $KEY from $GOOGLESIGNINPLISTPATH"
defaults delete $GOOGLESIGNINPLISTPATH $KEY
fi
@Dev-iL
Copy link

Dev-iL commented Oct 12, 2015

I've added this script as the last build phase (as mentioned here). I'm getting the following message in the Report navigator:

The domain/default pair of (/Users/XXXXX/Documents/XXXXX/iOS/Pods/GoogleSignIn/Resources/
GoogleSignIn.bundle/Info, CFBundleExecutable) does not exist

Is this normal? Perhaps GOOGLESIGNINPLISTPATH should end with /Info​**.plist** ?

All I know is that it had no effect on my build :\

@ivanglushko
Copy link

ivanglushko commented Apr 25, 2023

Thank you so much! Was useful for me.

I can't believe this is relevant for 2023 lol

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment