Repository navigation
Conversation
DebugClient's TCP client is gated on canImport(Darwin), but it imports Network, which is not present on every Darwin-targeting SDK. Building for an arm64-apple-macosx target whose SDK has no Network.framework fails with "no such module 'Network'" before any of the debug code is reached. Widen the guard to the module the file actually needs. (cherry picked from commit 23d0ca0)
The test target compiles DebugClient.swift through a symlink and uses DebugClient, which now compiles out when Network is unavailable. Use the same guard in the test file so the target still builds on such SDKs.
|
Review verdict for head 55cd87b: the cold review found that the test target compiles DebugClient.swift through a symlink and DebugServerTests.swift had only the Darwin guard. Fixed in a follow-up commit (same guard on the test file). Guard structure balances, no behavior change on SDKs with Network.framework. Not built: no Swift toolchain available. |
|
Thanks for putting this together. All supported Apple Darwin SDKs include |
DebugClient.swiftis gated oncanImport(Darwin)but importsNetwork, which is not present in every Darwin-targeting SDK. Building for anarm64-apple-macosxtarget whose SDK has no Network.framework fails withno such module 'Network'.This widens the guard to
canImport(Darwin) && canImport(Network), the modules the file needs. One line. On SDKs that have Network.framework the condition is unchanged.Testing: not built. There is no Swift toolchain on the machine where this was prepared, so the change was checked by reading only.