Created
January 17, 2014 21:14
-
-
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`
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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