Skip to content

Issue with Swift 6.0.2 and DeadArgSignatureOpt optimization during SIL compilation #123

Description

@1cetoprosto

Hello,

I'm encountering an issue when compiling my project with Swift 6.0.2. The build fails with the following error during the SIL optimization stage:
While running pass #420546 SILFunctionTransform "DeadArgSignatureOpt" on SILFunction "@$s6Former012TextFieldRowA0C8onReturnyACyxGXDySScF". for 'onReturn(_:)' (at /path/to/your/project/Pods/Former/Former/RowFormers/TextFieldRowFormer.swift:45:18)
It seems related to the DeadArgSignatureOpt pass and occurs specifically with the onReturn function in TextFieldRowFormer.swift.

Here are some details about my environment:

Swift version: 6.0.2
Xcode version: 16.1 (16B40)
CocoaPods version: 1.16.2
Former version: 1.8.1
This issue does not occur with earlier versions of Swift (e.g., Swift 5.x).

I’ve tried the following steps to resolve the issue:

Cleaned and rebuilt the project.
Updated CocoaPods dependencies (pod update).
Reduced the optimization level to -Onone, but the issue persists.
Could you please look into this and let me know if there are any known issues or potential fixes?

Thank you for your time and help!

Best regards,
Leonid Kvit

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions