| 1 |
from __future__ import annotations |
| 2 |
|
| 3 |
from collections.abc import Collection |
| 4 |
|
| 5 |
from briefcase.integrations.xcode import Xcode |
| 6 |
|
| 7 |
DEFAULT_OUTPUT_FORMAT = "Xcode" |
| 8 |
|
| 9 |
|
| 10 |
class iOSMixin: |
| 11 |
platform = "iOS" |
| 12 |
supported_host_os: Collection[str] = {"Darwin"} |
| 13 |
supported_host_os_reason = ( |
| 14 |
"iOS applications require Xcode, which is only available on macOS." |
| 15 |
) |
| 16 |
# 0.3.20 introduced PEP 730-style dynamic libraries. |
| 17 |
platform_target_version: str | None = "0.3.20" |
| 18 |
|
| 19 |
def verify_tools(self): |
| 20 |
Xcode.verify(self.tools, min_version=(13, 0, 0)) |
| 21 |
|
| 22 |
# Verify superclass tools *after* xcode. This ensures we get the |
| 23 |
# git check *after* the xcode check. |
| 24 |
super().verify_tools() |