CocoaPods / CocoaPods/Xcodeproj

Cannot handle projects from Xcode 16.3

Open
#1,017 2 comments 22 reactions 0 assignees View on GitHub
Dominant language
Ruby
Stars
2.4k
Forks
488
PR merge metrics
No merged PRs in 30d

Description

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

```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](https://github.com/CocoaPods/Xcodeproj/blob/ab3dfa504b5a97cae3a653a8924f4616dcaa062e/lib/xcodeproj/project/object/build_phase.rb#L328).

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

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.