-
-
Save rjstelling/4339226 to your computer and use it in GitHub Desktop.
# /bin/bash | |
#Usage: $ ./cs_xproj_validate.sh path/to/xcode/project/file/theproject.xcodeproj | |
#More info: http://stackoverflow.com/q/13962341/89035 | |
PROJECT_FILE="$1/project.pbxproj" | |
PREVIOUS_LINE=-1 | |
for LINE in `cat "$PROJECT_FILE" | grep -n CODE_SIGN_IDENTITY | grep -o -E '^([0-9]*)'` | |
do | |
TEMP=`expr $PREVIOUS_LINE + 1` | |
if [ $TEMP -eq $LINE ] ; then | |
echo "There is a Code Signing Identity (CODE_SIGN_IDENTITY) issue in $PROJECT_FILE at line $PREVIOUS_LINE." | |
exit 1 | |
fi | |
PREVIOUS_LINE=$LINE | |
done | |
exit 0 |
Hi, I promoted this to a "real" repo: https://github.com/rjstelling/Xcode-Project-Validate
If you've made useful changes please submit a pull request.
I don't see an original license for the code, yet you assigned MIT license to the script this person wrote. Doing this can get you in a lot of hot water. Please don't do this without asking first.
Hi, I promoted this to a "real" repo: https://github.com/rjstelling/Xcode-Project-Validate
If you've made useful changes please submit a pull request.I don't see an original license for the code, yet you assigned MIT license to the script this person wrote. Doing this can get you in a lot of hot water. Please don't do this without asking first.
Hi @maietta, thanks for your concern, but I'm the original code author so we're all good! 👍🏼
Hi, I promoted this to a "real" repo: https://github.com/rjstelling/Xcode-Project-Validate
If you've made useful changes please submit a pull request.