Skip to content

Commit 1b7ad81

Browse files
Update test_ios.sh (#9988)
Co-authored-by: Anthony Shoumikhin <[email protected]>
1 parent 7b791d6 commit 1b7ad81

File tree

1 file changed

+6
-20
lines changed

1 file changed

+6
-20
lines changed

scripts/test_ios.sh

Lines changed: 6 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ set -e
1515

1616
OUTPUT="${1:-executorch}"
1717
EXIT_STATUS=0
18-
APP_PATH="examples/demo-apps/apple_ios/ExecuTorchDemo/ExecuTorchDemo"
18+
APP_PATH="executorch-examples/apple/ExecuTorchDemo/ExecuTorchDemo"
1919
MODEL_NAME="mv3"
2020
SIMULATOR_NAME="executorch"
2121

@@ -44,26 +44,17 @@ say() {
4444
echo -e "\033[1m\n\t** $1 **\n\033[0m"
4545
}
4646

47-
say "Cloning the Code"
48-
49-
pushd . > /dev/null
50-
git clone -b release/0.6 https://github.com/pytorch/executorch.git "$OUTPUT"
51-
cd "$OUTPUT"
52-
53-
say "Updating the Submodules"
54-
55-
git submodule update --init
56-
5747
say "Activating a Virtual Environment"
5848

59-
python3 -m venv .venv
60-
source .venv/bin/activate
49+
python3 -m venv .venv && source .venv/bin/activate && pip install --upgrade pip
6150

6251
say "Installing Requirements"
6352

64-
pip install --upgrade cmake pip setuptools wheel zstd
53+
./install_executorch.sh
6554

66-
./install_executorch.sh --pybind coreml mps xnnpack
55+
say "Cloning the Demo App"
56+
57+
git clone --depth 1 https://github.com/pytorch-labs/executorch-examples.git
6758

6859
say "Installing CoreML Backend Requirements"
6960

@@ -88,11 +79,6 @@ say "Downloading Labels"
8879
curl https://raw.githubusercontent.com/pytorch/hub/master/imagenet_classes.txt \
8980
-o "$APP_PATH/Resources/Models/MobileNet/imagenet_classes.txt"
9081

91-
say "Building Frameworks"
92-
93-
./scripts/build_apple_frameworks.sh --coreml --custom --mps --optimized --portable --quantized --xnnpack
94-
mv cmake-out "$APP_PATH/Frameworks"
95-
9682
say "Creating Simulator"
9783

9884
xcrun simctl create "$SIMULATOR_NAME" "iPhone 15"

0 commit comments

Comments
 (0)