Open
Description
I have done the following
- I have searched the existing issues
- If possible, I've reproduced the issue using the 'main' branch of this project
Contact Details
No response
Steps to reproduce
- Clone the repo and checkout the latest main branch.
gh repo clone apple/container
cd container/
- Complie the project as mentioned in BUILDING.md.
make all test integration
Current behavior
When following the BUILDING.md guide and running
make all test integration
on an M1 MacBook with macOS 26 Beta (macOS Tahoe Version 26.0 Beta (25A5279m)), the build fails with multiple “cannot find type” errors related to the vmnet_network_ref
type and VZVmnetNetworkDeviceAttachment
. It looks like the new SDK on macOS 26 has changed or removed these private types.
Expected Behavior
The build should have succeed on M1 MacBook with macOS 26 Beta (macOS Tahoe Version 26.0 Beta (25A5279m)).
Environment
- OS: MacOS Tahoe Version 26.0 Beta (25A5279m)
- swift: Apple Swift version 6.1.2 (swiftlang-6.1.2.1.2
10000
clang-1700.0.13.5)
- xcode: Xcode 16.4 (build version 16F6)
- container: container CLI version 0.1.0
Relevant log output
Building container binaries...
"/usr/bin/swift" build -c debug ; \
Fetching https://github.com/grpc/grpc-swift.git
Fetching https://github.com/apple/swift-log.git
Fetching https://github.com/apple/swift-numerics.git
Fetching https://github.com/apple/containerization.git
Fetching https://github.com/apple/swift-protobuf.git
Fetching https://github.com/Bouke/DNS
Fetched https://github.com/Bouke/DNS from cache (2.78s)
Fetched https://github.com/grpc/grpc-swift.git from cache (2.78s)
Fetched https://github.com/apple/swift-log.git from cache (2.78s)
Fetched https://github.com/apple/swift-numerics.git from cache (2.79s)
Fetching https://github.com/apple/swift-atomics.git
Fetching https://github.com/apple/swift-nio.git
Fetching https://github.com/apple/swift-nio-http2.git
Fetching https://github.com/apple/swift-system.git
Fetched https://github.com/apple/swift-system.git from cache (0.98s)
Fetching https://github.com/swift-server/async-http-client.git
Fetched https://github.com/apple/containerization.git from cache (4.66s)
Fetched https://github.com/apple/swift-protobuf.git from cache (4.66s)
Fetching https://github.com/swiftlang/swift-docc-plugin
Fetching https://github.com/apple/swift-certificates.git
Fetched https://github.com/swift-server/async-http-client.git from cache (1.25s)
Fetching https://github.com/apple/swift-http-types.git
Fetched https://github.com/apple/swift-http-types.git from cache (0.75s)
Fetched https://github.com/swiftlang/swift-docc-plugin from cache (1.12s)
Fetched https://github.com/apple/swift-certificates.git from cache (1.12s)
Fetching https://github.com/apple/swift-async-algorithms.git
Fetching https://github.com/apple/swift-argument-parser.git
Fetching https://github.com/apple/swift-collections.git
Fetched https://github.com/apple/swift-nio.git from cache (3.81s)
Fetched https://github.com/apple/swift-nio-http2.git from cache (3.81s)
Fetched https://github.com/apple/swift-atomics.git from cache (3.81s)
Fetching https://github.com/apple/swift-algorithms.git
Fetching https://github.com/orlandos-nl/DNSClient
Fetching https://github.com/apple/swift-http-structured-headers.git
Fetched https://github.com/apple/swift-async-algorithms.git from cache (0.85s)
Fetching https://github.com/swift-server/swift-service-lifecycle.git
Fetched https://github.com/apple/swift-argument-parser.git from cache (1.30s)
Fetching https://github.com/apple/swift-asn1.git
Fetched https://github.com/apple/swift-collections.git from cache (1.49s)
Fetching https://github.com/apple/swift-nio-transport-services.git
Fetched https://github.com/orlandos-nl/DNSClient from cache (0.80s)
Fetched https://github.com/apple/swift-http-structured-headers.git from cache (0.80s)
Fetching https://github.com/apple/swift-crypto.git
Fetching https://github.com/apple/swift-nio-ssl.git
Fetched https://github.com/swift-server/swift-service-lifecycle.git from cache (0.84s)
Fetching https://github.com/swiftlang/swift-syntax.git
Fetched https://github.com/apple/swift-algorithms.git from cache (0.94s)
Fetching https://github.com/swiftlang/swift-docc-symbolkit
Fetched https://github.com/apple/swift-asn1.git from cache (0.72s)
Fetching https://github.com/apple/swift-nio-extras.git
Fetched https://github.com/apple/swift-nio-transport-services.git from cache (0.77s)
Fetched https://github.com/swiftlang/swift-docc-symbolkit from cache (0.90s)
Fetched https://github.com/apple/swift-nio-extras.git from cache (0.90s)
Fetched https://github.com/apple/swift-nio-ssl.git from cache (2.38s)
Fetched https://github.com/apple/swift-crypto.git from cache (2.38s)
Fetched https://github.com/swiftlang/swift-syntax.git from cache (4.16s)
Creating working copy for https://github.com/apple/swift-atomics.git
Working copy of https://github.com/apple/swift-atomics.git resolved at 1.2.0
Creating working copy for https://github.com/Bouke/DNS
Working copy of https://github.com/Bouke/DNS resolved at 1.2.0
Creating working copy for https://github.com/grpc/grpc-swift.git
Working copy of https://github.com/grpc/grpc-swift.git resolved at 1.26.1
Creating working copy for https://github.com/apple/swift-log.git
Working copy of https://github.com/apple/swift-log.git resolved at 1.6.3
Creating working copy for https://github.com/apple/swift-protobuf.git
Working copy of https://github.com/apple/swift-protobuf.git resolved at 1.30.0
Creating working copy for https://github.com/apple/swift-numerics.git
Working copy of https://github.com/apple/swift-numerics.git resolved at 1.0.3
Creating working copy for https://github.com/apple/containerization.git
Working copy of https://github.com/apple/containerization.git resolved at 0.1.0
Creating working copy for https://github.com/apple/swift-async-algorithms.git
Working copy of https://github.com/apple/swift-async-algorithms.git resolved at 1.0.4
Creating working copy for https://github.com/swift-server/async-http-client.git
Working copy of https://github.com/swift-server/async-http-client.git resolved at 1.26.1
Creating working copy for https://github.com/apple/swift-system.git
Working copy of https://github.com/apple/swift-system.git resolved at 1.5.0
Creating working copy for https://github.com/apple/swift-http-types.git
Working copy of https://github.com/apple/swift-http-types.git resolved at 1.4.0
Creating working copy for https://github.com/apple/swift-collections.git
Working copy of https://github.com/apple/swift-collections.git resolved at 1.2.0
Creating working copy for https://github.com/apple/swift-nio.git
Working copy of https://github.com/apple/swift-nio.git resolved at 2.83.0
Creating working copy for https://github.com/apple/swift-nio-http2.git
Working copy of https://github.com/apple/swift-nio-http2.git resolved at 1.36.0
Creating working copy for https://github.com/apple/swift-certificates.git
Working copy of https://github.com/apple/swift-certificates.git resolved at 1.10.0
Creating working copy for https://github.com/apple/swift-nio-ssl.git
Working copy of https://github.com/apple/swift-nio-ssl.git resolved at 2.31.0
Creating working copy for https://github.com/apple/swift-crypto.git
Working copy of https://github.com/apple/swift-crypto.git resolved at 3.12.3
Creating working copy for https://github.com/apple/swift-argument-parser.git
Working copy of https://github.com/apple/swift-argument-parser.git resolved at 1.5.1
Creating working copy for https://github.com/swiftlang/swift-docc-plugin
Working copy of https://github.com/swiftlang/swift-docc-plugin resolved at 1.4.4
Creating working copy for https://github.com/apple/swift-nio-extras.git
Working copy of https://github.com/apple/swift-nio-extras.git resolved at 1.28.0
Creating working copy for https://github.com/orlandos-nl/DNSClient
Working copy of https://github.com/orlandos-nl/DNSClient resolved at 2.4.4
Creating working copy for https://github.com/apple/swift-http-structured-headers.git
Working copy of https://github.com/apple/swift-http-structured-headers.git resolved at 1.3.0
Creating working copy for https://github.com/apple/swift-nio-transport-services.git
Working copy of https://github.com/apple/swift-nio-transport-services.git resolved at 1.24.0
Creating working copy for https://github.com/apple/swift-asn1.git
Working copy of https://github.com/apple/swift-asn1.git resolved at 1.3.2
Creating working copy for https://github.com/apple/swift-algorithms.git
Working copy of https://github.com/apple/swift-algorithms.git resolved at 1.2.1
Creating working copy for https://github.com/swift-server/swift-service-lifecycle.git
Working copy of https://github.com/swift-server/swift-service-lifecycle.git resolved at 2.8.0
Creating working copy for https://github.com/swiftlang/swift-syntax.git
Working copy of https://github.com/swiftlang/swift-syntax.git resolved at 600.0.1
Creating working copy for https://github.com/swiftlang/swift-docc-symbolkit
Working copy of https://github.com/swiftlang/swift-docc-symbolkit resolved at 1.0.0
Building for debugging...
/Users/mohammadzainabbas/Desktop/container/.build/checkouts/containerization/Sources/Containerization/NATNetworkInterface.swift:51:24: error: cannot find type 'vmnet_network_ref' in scope
49 | var macAddress: String?
50 | #if !CURRENT_SDK
51 | var reference: vmnet_network_ref
| `- error: cannot find type 'vmnet_network_ref' in scope
52 | #endif
53 | }
/Users/mohammadzainabbas/Desktop/container/.build/checkouts/containerization/Sources/Containerization/NATNetworkInterface.swift:56:27: error: cannot find type 'vmnet_network_ref' in scope
54 |
55 | #if !CURRENT_SDK
56 | public var reference: vmnet_network_ref {
| `- error: cannot find type 'vmnet_network_ref' in scope
57 | state.withLock { $0.reference }
58 | }
/Users/mohammadzainabbas/Desktop/container/.build/checkouts/containerization/Sources/Containerization/NATNetworkInterface.swift:66:28: error: cannot find type 'vmnet_network_ref' in scope
64 | address: String,
65 | gateway: String,
66 | reference: sending vmnet_network_ref,
| `- error: cannot find type 'vmnet_network_ref' in scope
67 | macAddress: String? = nil
68 | ) {
/Users/mohammadzainabbas/Desktop/container/.build/checkouts/containerization/Sources/Containerization/NATNetworkInterface.swift:107:29: error: cannot find 'VZVmnetNetworkDeviceAttachment' in scope
105 |
106 | #if !CURRENT_SDK
107 | config.attachment = VZVmnetNetworkDeviceAttachment(network: self.reference)
| `- error: cannot find 'VZVmnetNetworkDeviceAttachment' in scope
108 | #else
109 | config.attachment = VZNATNetworkDeviceAttachment()
/Users/mohammadzainabbas/Desktop/container/.build/checkouts/containerization/Sources/Containerization/NATNetworkInterface.swift:51:24: error: cannot find type 'vmnet_network_ref' in scope
49 | var macAddress: String?
50 | #if !CURRENT_SDK
51 | var reference: vmnet_network_ref
| `- error: cannot find type 'vmnet_network_ref' in scope
52 | #endif
53 | }
/Users/mohammadzainabbas/Desktop/container/.build/checkouts/containerization/Sources/Containerization/NATNetworkInterface.swift:56:27: error: cannot find type 'vmnet_network_ref' in scope
54 |
55 | #if !CURRENT_SDK
56 | public var reference: vmnet_network_ref {
| `- error: cannot find type 'vmnet_network_ref' in scope
57 | state.withLock { $0.reference }
58 | }
/Users/mohammadzainabbas/Desktop/container/.build/checkouts/containerization/Sources/Containerization/NATNetworkInterface.swift:66:28: error: cannot find type 'vmnet_network_ref' in scope
64 | address: String,
65 | gateway: String,
66 | reference: sending vmnet_network_ref,
| `- error: cannot find type 'vmnet_network_ref' in scope
67 | macAddress: String? = nil
68 | ) {
/Users/mohammadzainabbas/Desktop/container/.build/checkouts/containerization/Sources/Containerization/NATNetworkInterface.swift:107:29: error: cannot find 'VZVmnetNetworkDeviceAttachment' in scope
105 |
106 | #if !CURRENT_SDK
107 | config.attachment = VZVmnetNetworkDeviceAttachment(network: self.reference)
| `- error: cannot find 'VZVmnetNetworkDeviceAttachment' in scope
108 | #else
109 | config.attachment = VZNATNetworkDeviceAttachment()
/Users/mohammadzainabbas/Desktop/container/.build/checkouts/containerization/Sources/Containerization/NATNetworkInterface.swift:51:24: error: cannot find type 'vmnet_network_ref' in scope
49 | var macAddress: String?
50 | #if !CURRENT_SDK
51 | var reference: vmnet_network_ref
| `- error: cannot find type 'vmnet_network_ref' in scope
52 | #endif
53 | }
/Users/mohammadzainabbas/Desktop/container/.build/checkouts/containerization/Sources/Containerization/NATNetworkInterface.swift:56:27: error: cannot find type 'vmnet_network_ref' in scope
54 |
55 | #if !CURRENT_SDK
56 | public var reference: vmnet_network_ref {
| `- error: cannot find type 'vmnet_network_ref' in scope
57 | state.withLock { $0.reference }
58 | }
/Users/mohammadzainabbas/Desktop/container/.build/checkouts/containerization/Sources/Containerization/NATNetworkInterface.swift:66:28: error: cannot find type 'vmnet_network_ref' in scope
64 | address: String,
65 | gateway: String,
66 | reference: sending vmnet_network_ref,
| `- error: cannot find type 'vmnet_network_ref' in scope
67 | macAddress: String? = nil
68 | ) {
/Users/mohammadzainabbas/Desktop/container/.build/checkouts/containerization/Sources/Containerization/NATNetworkInterface.swift:107:29: error: cannot find 'VZVmnetNetworkDeviceAttachment' in scope
105 |
106 | #if !CURRENT_SDK
107 | config.attachment = VZVmnetNetworkDeviceAttachment(network: self.reference)
| `- error: cannot find 'VZVmnetNetworkDeviceAttachment' in scope
108 | #else
109 | config.attachment = VZNATNetworkDeviceAttachment()
/Users/mohammadzainabbas/Desktop/container/.build/checkouts/containerization/Sources/Containerization/NATNetworkInterface.swift:51:24: error: cannot find type 'vmnet_network_ref' in scope
49 | var macAddress: String?
50 | #if !CURRENT_SDK
51 | var reference: vmnet_network_ref
| `- error: cannot find type 'vmnet_network_ref' in scope
52 | #endif
53 | }
/Users/mohammadzainabbas/Desktop/container/.build/checkouts/containerization/Sources/Containerization/NATNetworkInterface.swift:56:27: error: cannot find type 'vmnet_network_ref' in scope
54 |
55 | #if !CURRENT_SDK
56 | public var reference: vmnet_network_ref {
| `- error: cannot find type 'vmnet_network_ref' in scope
57 | state.withLock { $0.reference }
58 | }
/Users/mohammadzainabbas/Desktop/container/.build/checkouts/containerization/Sources/Containerization/NATNetworkInterface.swift:66:28: error: cannot find type 'vmnet_network_ref' in scope
64 | address: String,
65 | gateway: String,
66 | reference: sending vmnet_network_ref,
| `- error: cannot find type 'vmnet_network_ref' in scope
67 | macAddress: String? = nil
68 | ) {
/Users/mohammadzainabbas/Desktop/container/.build/checkouts/containerization/Sources/Containerization/NATNetworkInterface.swift:107:29: error: cannot find 'VZVmnetNetworkDeviceAttachment' in scope
105 |
106 | #if !CURRENT_SDK
107 | config.attachment = VZVmnetNetworkDeviceAttachment(network: self.reference)
| `- error: cannot find 'VZVmnetNetworkDeviceAttachment' in scope
108 | #else
109 | config.attachment = VZNATNetworkDeviceAttachment()
/Users/mohammadzainabbas/Desktop/container/.build/checkouts/containerization/Sources/Containerization/NATNetworkInterface.swift:51:24: error: cannot find type 'vmnet_network_ref' in scope
49 | var macAddress: String?
50 | #if !CURRENT_SDK
51 | var reference: vmnet_network_ref
| `- error: cannot find type 'vmnet_network_ref' in scope
52 | #endif
53 | }
/Users/mohammadzainabbas/Desktop/container/.build/checkouts/containerization/Sources/Containerization/NATNetworkInterface.swift:56:27: error: cannot find type 'vmnet_network_ref' in scope
54 |
55 | #if !CURRENT_SDK
56 | public var reference: vmnet_network_ref {
| `- error: cannot find type 'vmnet_network_ref' in scope
57 | state.withLock { $0.reference }
58 | }
/Users/mohammadzainabbas/Desktop/container/.build/checkouts/containerization/Sources/Containerization/NATNetworkInterface.swift:66:28: error: cannot find type 'vmnet_network_ref' in scope
64 | address: String,
65 | gateway: String,
66 | reference: sending vmnet_network_ref,
| `- error: cannot find type 'vmnet_network_ref' in scope
67 | macAddress: String? = nil
68 | ) {
/Users/mohammadzainabbas/Desktop/container/.build/checkouts/containerization/Sources/Containerization/NATNetworkInterface.swift:107:29: error: cannot find 'VZVmnetNetworkDeviceAttachment' in scope
105 |
106 | #if !CURRENT_SDK
107 | config.attachment = VZVmnetNetworkDeviceAttachment(network: self.reference)
| `- error: cannot find 'VZVmnetNetworkDeviceAttachment' in scope
108 | #else
109 | config.attachment = VZNATNetworkDeviceAttachment()
error: emit-module command failed with exit code 1 (use -v to see invocation)
/Users/mohammadzainabbas/Desktop/container/.build/checkouts/containerization/Sources/Containerization/NATNetworkInterface.swift:51:24: error: cannot find type 'vmnet_network_ref' in scope
49 | var macAddress: String?
50 | #if !CURRENT_SDK
51 | var reference: vmnet_network_ref
| `- error: cannot find type 'vmnet_network_ref' in scope
52 | #endif
53 | }
/Users/mohammadzainabbas/Desktop/container/.build/checkouts/containerization/Sources/Containerization/NATNetworkInterface.swift:56:27: error: cannot find type 'vmnet_network_ref' in scope
54 |
55 | #if !CURRENT_SDK
56 | public var reference: vmnet_network_ref {
| `- error: cannot find type 'vmnet_network_ref' in scope
57 | state.withLock { $0.reference }
58 | }
/Users/mohammadzainabbas/Desktop/container/.build/checkouts/containerization/Sources/Containerization/NATNetworkInterface.swift:66:28: error: cannot find type 'vmnet_network_ref' in scope
64 | address: String,
65 | gateway: String,
66 | reference: sending vmnet_network_ref,
| `- error: cannot find type 'vmnet_network_ref' in scope
67 | macAddress: String? = nil
68 | ) {
[2182/2197] Compiling Containerization VsockConnectionStream.swift
make: *** [build] Error 1
Code of Conduct
- I agree to follow this project's Code of Conduct