CocoaPods / Xcodeproj

Create and modify Xcode projects from Ruby.
http://rubygems.org/gems/xcodeproj
MIT License
2.32k stars 452 forks source link

Update remote Swift packages annotations to match Xcode #921

Closed alexandre-pod closed 5 months ago

alexandre-pod commented 9 months ago

I am using two tools that use Xcodeproj to manipulate Xcode files (ccios and Kintsugi). But on projects using Swift packages the Xcodeproj updates is not matching what Xcode 14 and 15 generates, it has additional ".git" in packages annotations.

For example, with a clean project with a single Swift package dependency, when I just read and save the Xcode project using this code (Xcodeproj::Project.open('./SimpleApp.xcodeproj').save('./SimpleApp.xcodeproj')), this happens in git:

diff of the .xcodeproj file showing the Xcodeproj adding .git extension in annotations

This PR make Xcodeproj match the Xcode behavior

amorde commented 5 months ago

Able to reproduce, and found https://github.com/CocoaPods/Xcodeproj/issues/864 which is related. Thanks!