SCHEME=$1
if [ -z "$SCHEME" ]
then
  echo "\nUsage: ${0} <Scheme name: \"CBL_ObjC\" or \"CBL_Swift\">\n\n"
  exit 1
fi

echo "Preparing CouchbaseLite framework ..."

rm -rf frameworks
sh Scripts/build_framework.sh -s "$SCHEME" -p iOS -o frameworks > ios-build.log
sh Scripts/build_framework.sh -s "$SCHEME" -p macOS -o frameworks > macos-build.log
