Skip to content

1.17.0 doesn't compile on Xcode 16 Beta 3 #868

Closed
@cameroncooke

Description

@cameroncooke

Describe the bug
The library doesn't compile on Xcode 16 Beta 3 due to a change in the swift-testing Issue.record() function arguments. Specially the error is: Extra arguments at positions #2, #3 in call

The Issue.record() function uses sourceLocation instead of filePath and line. It looks like we have to construct an instance of SourceLocation and provide in addition to filePath and line also column and fileID the latter can be created using fileID() function so it looks like the recordIssue() function of swift-testing will need some changes to pass in an existing SourceLocation or fileID

To Reproduce
Open project in Xcode 16 beta 3 and compile.

Expected behavior
Compiles ;-)

Screenshots

Screenshot 2024-07-09 at 13 24 24

Environment

  • swift-snapshot-testing version 1.17.0
  • Xcode 16.0 beta 3 (16A5202i)
  • Swift 6.0
  • OS: 15.0 Beta (24A5279h)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions