Skip to content

Instantly share code, notes, and snippets.

@christocracy
Created January 17, 2014 21:14
Show Gist options
  • Select an option

  • Save christocracy/8481702 to your computer and use it in GitHub Desktop.

Select an option

Save christocracy/8481702 to your computer and use it in GitHub Desktop.
Fix the iOS, Phonegap NIB error, dammit. Add this to your `.cordova/hooks/after_platform_add/patch_plist.sh` `$ chmod +x patch_plist.sh`
#!/bin/bash
if pushd platforms/ios 2>/dev/null ; then # iOS-specific actions...
# Patch *-Info.plist
PROJNAME=$(echo *.xcodeproj|sed -e 's/\..*//')
sed -i '' '/<key>NSMainNibFile<\/key>/,/<\/string>/d' $PROJNAME/*-Info.plist
sed -i '' '/<key>NSMainNibFile~ipad<\/key>/,/<\/string>/d' $PROJNAME/*-Info.plist
popd
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment