XCRemoteSwiftPackageReference .git suffix constantly changing in project.pbxproj

749 Views Asked by At

On our team, pull requests were often raised with changes similar to the following

project.pbxproj diff

(or sometimes they would change back, that is, remove the .git)

This was causing a lot of noise in PRs but we were unable figure out the cause of the change.

2

There are 2 best solutions below

2
Max Chuquimia On

We (much) later discovered that this was happening because a member of the team was using AppCode without our knowledge. It is also a known issue:

https://youtrack.jetbrains.com/issue/OC-21297/AppCode-messes-up-the-xcodeproj-project-pbxproj-file-and-introdu

0
lhunath On

Another potential source is the Xcodeproj library which is used by many tools, including fastlane.

https://github.com/CocoaPods/Xcodeproj/issues/882