blob: 0f6f0373cbc98057b49b98883a076884dd948838 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
#!/bin/sh
if [ ! -d "$PROJECT_DIR/www" ] ; then
cp -R /Users/Shared/Cordova/Frameworks/Cordova.framework/www "$PROJECT_DIR"
fi
# detect www folder reference in project, if missing, print warning
grep "{isa = PBXFileReference; lastKnownFileType = folder; path = www; sourceTree = \"<group>\"; };" "$PROJECT_DIR/$PROJECT_NAME.xcodeproj/project.pbxproj"
rc=$?
if [ $rc != 0 ] ; then
echo -e "warning: Missing - Add $PROJECT_DIR/www as a folder reference in your project. Just drag and drop the folder into your project, into the Project Navigator of Xcode 4. Make sure you select the second radio-button: 'Create folder references for any added folders' (which will create a blue folder)" 1>&2
fi
|