diff --git a/xcode/templates/SFML/SFML Application Base.xctemplate/TemplateInfo.plist b/xcode/templates/SFML/SFML Application Base.xctemplate/TemplateInfo.plist index 137453a33..a9bb42bc2 100644 --- a/xcode/templates/SFML/SFML Application Base.xctemplate/TemplateInfo.plist +++ b/xcode/templates/SFML/SFML Application Base.xctemplate/TemplateInfo.plist @@ -669,31 +669,33 @@ fi require () # $1 is a SFML module like 'system' or 'audio' { + dest=$BUILT_PRODUCTS_DIR/$PRODUCT_NAME.app/Contents/Frameworks + if [ -z $1 ] then echo "no parameter! ERROR!" exit else # clean potentially old stuff - rm -f $BUILT_PRODUCTS_DIR/test.app/Contents/Frameworks/libsfml-$1.2.dylib - rm -f $BUILT_PRODUCTS_DIR/test.app/Contents/Frameworks/libsfml-$1-d.2.dylib - rm -f $BUILT_PRODUCTS_DIR/test.app/Contents/Frameworks/sfml-$1.framework + rm -f $dest/libsfml-$1.2.dylib + rm -f $dest/libsfml-$1-d.2.dylib + rm -f $dest/sfml-$1.framework # copy SFML libraries if [ $frameworks ] then - ditto /Library/Frameworks/sfml-$1.framework $BUILT_PRODUCTS_DIR/test.app/Contents/Frameworks/sfml-$1.framework + ditto /Library/Frameworks/sfml-$1.framework $dest/sfml-$1.framework elif [ $CONFIGURATION = "Debug" ] then - ditto /usr/local/lib/libsfml-$1-d.2.dylib $BUILT_PRODUCTS_DIR/test.app/Contents/Frameworks/libsfml-$1-d.2.dylib + ditto /usr/local/lib/libsfml-$1-d.2.dylib $dest/libsfml-$1-d.2.dylib else - ditto /usr/local/lib/libsfml-$1.2.dylib $BUILT_PRODUCTS_DIR/test.app/Contents/Frameworks/libsfml-$1.2.dylib + ditto /usr/local/lib/libsfml-$1.2.dylib $dest/libsfml-$1.2.dylib fi if [ $1 = "audio" ] then # copy sndfile framework too - ditto /Library/Frameworks/sndfile.framework $BUILT_PRODUCTS_DIR/test.app/Contents/Frameworks/sndfile.framework + ditto /Library/Frameworks/sndfile.framework $dest/sndfile.framework fi fi }