Skip to content

Xcode warning: “no rule to process file” #938

Closed as not planned
Closed as not planned

Description

@fumoboy007

Description

I followed the tutorial to generate a client inside Xcode. The client is successfully generated but Xcode shows two warnings:

no rule to process file '/Users/fumoboy007/Downloads/OpenAPIGenerator-NoRuleToProcessFileWarningRepro/OpenAPIGenerator-NoRuleToProcessFileWarningRepro/openapi-generator-config.yaml' of type 'text.yaml' for architecture 'arm64'

no rule to process file '/Users/fumoboy007/Downloads/OpenAPIGenerator-NoRuleToProcessFileWarningRepro/OpenAPIGenerator-NoRuleToProcessFileWarningRepro/openapi.yaml' of type 'text.yaml' for architecture 'arm64'

Reproduction

OpenAPIGenerator-NoRuleToProcessFileWarningRepro.zip

Package version(s)

swift-openapi-generator 1.13.0

Expected behavior

No Xcode warnings.

Environment

Xcode 26.3 (17C529)

Additional information

Similar issue: #780.

Activity

  1. added
    kind/bugFeature doesn't work as expected.
    status/triageCollecting information required to triage the issue.
    on Aug 18, 2026
  2. simonjbeaumont commented on Aug 18, 2026

    @simonjbeaumont
    Collaborator

    Assuming you have the build plugin enabled for your target, then these files are used and any warning in Xcode that they are not is an Xcode bug. It sounds like these are cosmetic and your project builds successfully? If you would like to see these warnings addressed you will probably need to file an issue with Feedback Assistant, for Xcode.

    I don't know much about Xcode project file structure, but wonder if this is meaningful:

    /* Begin PBXFileSystemSynchronizedGroupBuildPhaseMembershipExceptionSet section */
                    E6AC3B73303412A100AFB1E0 /* Exceptions for "OpenAPIGenerator-NoRuleToProcessFileWarningRepro" folder in "Compile Sources" phase from "OpenAPIGenerator-NoRuleToProcessFileWarningRepro" target */ = {
                            isa = PBXFileSystemSynchronizedGroupBuildPhaseMembershipExceptionSet;
                            buildPhase = E67A5277303410980009054A /* Sources */;
                            membershipExceptions = (
                                    "openapi-generator-config.yaml",
                                    openapi.yaml,
                            );
                    };
    /* End PBXFileSystemSynchronizedGroupBuildPhaseMembershipExceptionSet section */
    
  3. simonjbeaumont commented on Aug 18, 2026

    @simonjbeaumont
    Collaborator

    OK, I have a workaround...

    The issue appears to be the presence of the files in the list of "Compile Sources" for the target:

    Image

    However, you cannot simply remove them from the list because they will not be made available to the build plugin and it will fail to run.

    A workaround I found was to go to the "Build Rules" tab (to the right of the "Build Phases" tab and add a custom rule:

    Image

    Use */openapi-generator-config.yaml as the matching string, use a custom but EMPTY script, and declare $(DERIVED_FILES_DIR)/nothing-to-see-here as the output file.

    Create an equivalent one for */openapi.yaml.

    When I did this, it got rid of the warnings.

  4. czechboy0 commented on Aug 18, 2026

    @czechboy0
    Contributor

    Wow, that's a great find, @simonjbeaumont. But yeah, @fumoboy007 please file a bug on Xcode for this, and post the FB number here please.

  5. fumoboy007 commented on Aug 18, 2026

    @fumoboy007
    Author

    @simonjbeaumont Thanks for finding a workaround! 😃

    @czechboy0 FB24402412

  6. czechboy0 commented on Sep 25, 2026

    @czechboy0
    Contributor

    Closing, as this was now filed through Feedback Assistant on the Xcode team. Will pin the issue for visibility.

  7. pinned this issue on Sep 25, 2026
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

    kind/bugFeature doesn't work as expected.status/triageCollecting information required to triage the issue.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions