[Bug]: Running a single test from TestCLIMachine in xcode errors out
I have done the following
- [x] I have searched the existing issues
- [x] If possible, I've reproduced the issue using the 'main' branch of this project
Steps to reproduce
- Open
containerin xcode. - Open the
TestCLIMachinefile. - Click the play button left of
@Test func testCreate() throws { - See xcode show both:
- warning: 'CLITests' is missing a dependency on 'MachineAPIClient' because dependency scan of Swift module 'CLITests' discovered a dependency on 'MachineAPIClient'
- error: /Volumes/src/apple/container/Package.swift:1:1 Undefined symbol: MachineAPIClient.MachineConfiguration.containerUUIDLength.unsafeMutableAddressor : Swift.Int
Problem description
Current behavior: xcode fails to run a single test via UI Expected behavior: the test executes Relevant warning: 'CLITests' is missing a dependency on 'MachineAPIClient' because dependency scan of Swift module 'CLITests' discovered a dependency on 'MachineAPIClient' Relevant error: /Volumes/src/apple/container/Package.swift:1:1 Undefined symbol: MachineAPIClient.MachineConfiguration.containerUUIDLength.unsafeMutableAddressor : Swift.Int
Environment
- OS:
ProductName: macOS
ProductVersion: 26.5.1
BuildVersion: 25F80
- Xcode: 26.5 (17F42)
- Container: main branch
Code of Conduct
- [x] I agree to follow this project's Code of Conduct
Pull request with a fix: https://github.com/apple/container/pull/1775
Fixed in https://github.com/apple/container/pull/1775 https://github.com/apple/container/commit/37d463e5376cdba88fcf159390c3876450423ae8