diff --git a/libretro-build-ios.sh b/libretro-build-ios.sh index a1fb9dbf..c966f1de 100755 --- a/libretro-build-ios.sh +++ b/libretro-build-ios.sh @@ -7,6 +7,12 @@ ROOT_DIR=$CORES_DIR/libretro-super RARCH_DIR=$CORES_DIR/RetroArch RARCH_DIST_DIR=$RARCH_DIR/ios/modules +if [ ! -d "$RARCH_DIST_DIR" ] +then + echo "Can't find the RetroArch directory, quitting..." + exit 0 +fi + export IOSSDK=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.1.sdk/ if ! $SKIPFETCH ; then