container icon indicating copy to clipboard operation
container copied to clipboard

[Bug]: Running a single test from TestCLIMachine in xcode errors out

Open mareksapota opened this issue 5 months ago • 2 comments

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 container in xcode.
  • Open the TestCLIMachine file.
  • 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

mareksapota avatar Jun 20 '26 17:06 mareksapota

Pull request with a fix: https://github.com/apple/container/pull/1775

mareksapota avatar Jun 20 '26 17:06 mareksapota

Fixed in https://github.com/apple/container/pull/1775 https://github.com/apple/container/commit/37d463e5376cdba88fcf159390c3876450423ae8

mareksapota avatar Jun 20 '26 19:06 mareksapota