Skip to content

'Data' has no member 'bytes' build error on macos-14 GHA runners #363

Description

@rgoldberg

Describe the bug

On macos-14 GHA runners, building swift-subprocess 1.0.0 as a dependency for a SwiftPM 6.3 project reports the following error (I can supply the log, if necessary):

.build/checkouts/swift-subprocess/Sources/Subprocess/SubprocessFoundation/Input+Foundation.swift:154:42: error: value of type 'Data' has no member 'bytes'

swift-subprocess 0.5.0 does not produce this error.

To Reproduce

I imagine the error should occur when building on any macOS 14.

I set up the Swift 6.3 toolchain using:

swiftly init -ny
swiftly link latest

Building on macos-26 & macos-26-intel GHA runners did not output any errors.

I don't know about macos-15 & macos-15-intel, because the macos-14 failure canceled those before they finished.

I do not get any errors building with swift from Xcode 26.6 on my macOS 26.6.1 M4 Max Studio.

Expected behavior

No build error.

Environment (please complete the following information):

  • OS [e.g. macOS 15]: macOS 14.8.7 (on macos-14 GHA runner)
  • Swift version (run swift --version): Swift 6.3.3 installed via Swiftly

Additional context

Using Data.withUnsafeBytes(_:) instead of Data.bytes should solve this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions