示例工程 45-macos-app-lifecycle-bundle
45-macos-app-lifecycle-bundle/Diagnostics/README.md
# Diagnostics
两个文件**故意编译失败**,用来复现第 45 章「报错现场」的真实诊断。
```bash
swiftc -typecheck Diagnostics/BundleBadExtension.swift # error: cannot convert 'Int' to 'String'
swiftc -typecheck Diagnostics/EnvironmentIntKey.swift # error: no exact matches in call to subscript
```