Xcode : Package.resolved file is getting deleted on branch switching in git

Hi Team ,

We are having an issue that when we open the Xcode and switch any git branches(either through Xcode or using any other git GUI tools) the package.resolved file is getting deleted automatically

So we need to reset the git each time on a branch switch to regenerate the package.resolved file

Please note if the Xcode is quit and if we do the branch switching from an external git GUI, this issue is not happening

Also there is no change is added to the package.resolved file between these two branhces , So theoritically there is no need of updating this file while we switch the branch

Answered by bobinabr88 in 801489022

Hi @DTS Engineer ,

We tested the issue in Xcode 16 beta 5 version and we are not able to reproduce the issue

So I think the issue is resolved in beta 5 itself. So I think we will be fine when we get the official release of Xcode 16

Thanks a lot @DTS Engineer

Which Xcode version are you using? There were some known issues matching your description that have since been resolved with recent Xcode 16 betas, so I suggest you try out Xcode 16 beta 6 to see if you still encounter this. If you do, please open a bug report, please post the FB number here for my reference.

If you have any questions about filing a bug report, take a look at Bug Reporting: How and Why?

— Ed Ford,  DTS Engineer

Hi @DTS Engineer ,

Thanks a lot for your reply. We are using the Xcode 15.3.

As you suggested , I will try to reproduce the issue on Xcode 16 beta 6 and update you

Accepted Answer

Hi @DTS Engineer ,

We tested the issue in Xcode 16 beta 5 version and we are not able to reproduce the issue

So I think the issue is resolved in beta 5 itself. So I think we will be fine when we get the official release of Xcode 16

Thanks a lot @DTS Engineer

Xcode : Package.resolved file is getting deleted on branch switching in git
 
 
Q