diff --git a/tools/xcode/templates/SFML/SFML App.xctemplate/TemplateInfo.plist b/tools/xcode/templates/SFML/SFML App.xctemplate/TemplateInfo.plist index 19033b11..6190c89b 100644 --- a/tools/xcode/templates/SFML/SFML App.xctemplate/TemplateInfo.plist +++ b/tools/xcode/templates/SFML/SFML App.xctemplate/TemplateInfo.plist @@ -3,9 +3,9 @@ @@ -84,14 +84,14 @@ subject to the following restrictions: TargetIndices - + main.cpp Path main.cpp - + cute_image.jpg @@ -100,7 +100,7 @@ subject to the following restrictions: Group Resources - + nice_music.ogg Path @@ -108,7 +108,7 @@ subject to the following restrictions: Group Resources - + sansation.ttf Path @@ -116,7 +116,7 @@ subject to the following restrictions: Group Resources - + icon.png Path @@ -125,7 +125,7 @@ subject to the following restrictions: Resources - + @@ -195,7 +195,7 @@ copy () # $1 is a source, $2 is a destination require () # $1 is a SFML module like 'system' or 'audio' { dest="$BUILT_PRODUCTS_DIR/$PRODUCT_NAME.app/Contents/Frameworks" - + if [ -z "$1" ] then error "require() requires one parameter!" @@ -204,18 +204,18 @@ require () # $1 is a SFML module like 'system' or 'audio' force_remove "$dest/libsfml-$1.2.dylib" force_remove "$dest/libsfml-$1-d.2.dylib" force_remove "$dest/sfml-$1.framework" - + # copy SFML libraries if [ "$frameworks" = "true" ] then copy "/Library/Frameworks/sfml-$1.framework" "$dest/sfml-$1.framework" - elif [ $CONFIGURATION = "Debug" ] && [ $SFML_LINK_DYLIBS_SUFFIX_DEBUG != "" ] + elif [ "$SFML_LINK_DYLIBS_SUFFIX" = "-d" ] then copy "/usr/local/lib/libsfml-$1-d.2.dylib" "$dest/libsfml-$1-d.2.dylib" else copy "/usr/local/lib/libsfml-$1.2.dylib" "$dest/libsfml-$1.2.dylib" fi - + if [ "$1" = "audio" ] then # copy sndfile framework too