Skip to content
Open
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
13 changes: 13 additions & 0 deletions src/briefcase/integrations/xcode.py
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,19 @@ def ensure_xcode_is_installed(
"""
) from e

try:
# Check for iOS simulated devices
result = subprocess.run(['xcrun', 'simctl', 'list', 'devices'],
capture_output=True, text=True, check=True)
output = result.stdout
if re.search(r"== Devices ==\s*$", output):
raise BriefcaseCommandError(
preamble = """\
There are no Apple Simulator Control devices installed. They are usually
part of the Xcode iOS Component installation. It can be installed
from the Xcode GUI, settings -> Components -> iOS.
"""
) from e

class XcodeCliTools(Tool):
name = "xcode_cli"
Expand Down
Loading