INNER CODE UNIT · Python
load_xcconfig
RockxyApp/Rockxy · releases/validate_metadata.py:444
def load_xcconfig(path: Path) -> dict[str, str]:
try:
lines = path.read_text().splitlines()
except FileNotFoundError:
fail(f"{path} is missing")
values: dict[str, str] = {}
for raw_line in lines:
line = raw_line.split("//", 1)[0].strip()
if not line or "=" not in line:
continue
key, value = line.split("=", 1)
values[key.strip()] = value.strip()
return values
def validate_build_settings(path: Path, expected: dict[str, Any]) -> None:
settings = load_xcconfig(path)
checks = {