Skip to content

Commit 3261571

Browse files
committed
chore: ignore xcodebuild error output
1 parent 7457c73 commit 3261571

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ def get_workspace():
8383
workspace = get_workspace()
8484

8585
# find and record build_root for workspace and scheme
86-
cmd = f"""xcodebuild -showBuildSettings -workspace '{workspace}' -scheme '{scheme}' | grep "\\bBUILD_DIR =" | head -1 | awk -F" = " '{{print $2}}' | tr -d '"' """
86+
cmd = f"""xcodebuild -showBuildSettings -workspace '{workspace}' -scheme '{scheme}' 2>/dev/null | grep "\\bBUILD_DIR =" | head -1 | awk -F" = " '{{print $2}}' | tr -d '"' """
8787
build_dir = subprocess.check_output(cmd, shell=True, universal_newlines=True)
8888
build_root = os.path.join(build_dir, "../..")
8989
build_root = os.path.abspath(build_root)

0 commit comments

Comments
 (0)