# HG changeset patch # User Gabriel Jacobo # Date 1340147805 10800 # Node ID 85b8778a05c21d88aa070f03986f037c8d3a4b24 # Parent 8d541aa4e1dafbb7a6642f9a076cca8b27ccdc2b small improvements in the iosbuild.sh script diff -r 8d541aa4e1da -r 85b8778a05c2 build-scripts/iosbuild.sh --- a/build-scripts/iosbuild.sh Tue Jun 19 18:25:04 2012 -0300 +++ b/build-scripts/iosbuild.sh Tue Jun 19 20:16:45 2012 -0300 @@ -12,7 +12,7 @@ # SDK path XCODE_PATH=`xcode-select --print-path` if [ -z "$XCODE_PATH" ]; then - echo "Could not find XCode location" + echo "Could not find XCode location (use xcode-select -switch to set the correct path)" exit 1 fi @@ -250,8 +250,8 @@ sh $auxdir/mkinstalldirs build/$output cd build target=`find . -mindepth 4 -maxdepth 4 -type f -name '*.dylib' | head -1 | sed 's|.*/||'` - (lipo -create -o $output/libSDL2.a */build/.libs/libSDL2.a && - lipo -create -o $output/libSDL2main.a */build/libSDL2main.a && + (lipo -create -o $output/libSDL2.a armv6/build/.libs/libSDL2.a armv7/build/.libs/libSDL2.a i386/build/.libs/libSDL2.a && + lipo -create -o $output/libSDL2main.a armv6/build/libSDL2main.a armv7/build/libSDL2main.a i386/build/libSDL2main.a && cp -r armv6/include ios echo "Build complete!" && echo "Files can be found under the build/ios directory.") || exit 4