Skip to content

Commit

Permalink
Test with explicit visionOS download
Browse files Browse the repository at this point in the history
  • Loading branch information
calda committed Jan 12, 2024
1 parent 8785f12 commit 7d2c799
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -84,11 +84,12 @@ def xcodebuild(command)
# Check if the mint tool is installed -- if so, pipe the xcodebuild output through xcbeautify
`which mint`

if $?.success?
sh "set -o pipefail && xcodebuild #{command} | mint run thii/[email protected]"
else
# TODO: REVERT THIS CHANGE, JUST TESTING WITHMORE VERBOSE LOGGING
# if $?.success?
# sh "set -o pipefail && xcodebuild #{command} | mint run thii/[email protected]"
# else
sh "xcodebuild #{command}"
end
# end
end

# Runs the given code block, unless `SKIP_VISION_OS=true`.
Expand All @@ -97,6 +98,8 @@ def ifVisionOSEnabled
if ENV["SKIP_VISION_OS"] == "true"
puts "Skipping visionOS build"
else
# Download visionOS SDK if necessary
xcodebuild("-downloadPlatform visionOS")
yield
end
end

0 comments on commit 7d2c799

Please sign in to comment.