Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions apothecary/apothecary
Original file line number Diff line number Diff line change
Expand Up @@ -858,6 +858,7 @@ if [[ "$TYPE" =~ ^(osx|ios|tvos|xros|catos|watchos)$ ]]; then
TVOS_LATEST_SDK=$(xcrun -sdk appletvos --show-sdk-version >/dev/null || echo "SDKNotInstalled")
XROS_MIN_SDK_VER=1.1
WATCHOS_MIN_SDK_VER=6.0
export ARCH_IS_SIMULATOR="false"
fi


Expand All @@ -873,10 +874,12 @@ if [ "$TYPE" = "ios" ]; then
export PLATFORM="OS"
elif [ $ARCH == "x86_64" ] || [ $ARCH == 64 ]; then
export PLATFORM="SIMULATOR64"
export ARCH_IS_SIMULATOR="true"
elif [ $ARCH == "arm64" ] ; then
export PLATFORM="OS64"
elif [ $ARCH == "SIM_arm64" ]; then
export PLATFORM="SIMULATORARM64"
export ARCH_IS_SIMULATOR="true"
fi
fi

Expand All @@ -890,10 +893,12 @@ if [ "$TYPE" = "tvos" ]; then
export FLAG_RELEASE="-Os -fvisibility=hidden"
if [ $ARCH == "x86_64" ] || [ $ARCH == 64 ]; then
export PLATFORM="SIMULATOR_TVOS"
export ARCH_IS_SIMULATOR="true"
elif [ $ARCH == "arm64" ] ; then
export PLATFORM="TVOS"
elif [ $ARCH == "SIM_arm64" ]; then
export PLATFORM="SIMULATORARM64_TVOS"
export ARCH_IS_SIMULATOR="true"
fi
fi

Expand All @@ -903,8 +908,10 @@ if [ "$TYPE" = "watchos" ]; then
export PLATFORM="WATCHOS"
elif [ $ARCH == "x86_64" ] ; then
export PLATFORM="SIMULATOR_WATCHOS"
export ARCH_IS_SIMULATOR="true"
elif [ $ARCH == "SIM_arm64" ]; then
export PLATFORM="SIMULATORARM64_WATCHOS"
export ARCH_IS_SIMULATOR="true"
else
echoError "watchOS incorrect ARCH:[$ARCH]"
fi
Expand All @@ -916,8 +923,10 @@ if [ "$TYPE" = "xros" ]; then
export PLATFORM="VISIONOS"
elif [ $ARCH == "x86_64" ] || [ $ARCH == 64 ]; then
export PLATFORM="SIMULATOR64_VISIONOS"
export ARCH_IS_SIMULATOR="true"
elif [ $ARCH == "SIM_arm64" ]; then
export PLATFORM="SIMULATOR_VISIONOS"
export ARCH_IS_SIMULATOR="true"
fi
fi

Expand Down
Loading
Loading