Skip to content

Cannot handle projects from Xcode 16.3 #1017

Description

@fruitcoder

The Xcode 16.3 project structure changes the shellScript of a build phase to an Array instead of string. Sample diff

- shellScript = "sh ../../scripts/swiftlint.sh\n";
+ shellScript = (
+  "sh ../../scripts/swiftlint.sh",
+  "",
+ ); 

This results in the error: [Xcodeproj] Type checking error: got Array for attribute: attribute 'shellScript' (type: simple, classes: [String], owner class : PBXShellScriptBuildPhase

I haven't found any project-specific conditionals for declarations so I'm unsure what's the best (backwards compatible) way to solve this but the relevant line is here.

Can someone point me in the right direction how I could fix this then I'd open a PR.

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