Cocoapods project.pbxproj merge conflicts

I have been looking for an answer about merge conflicts with project.pbxproj files for a long time. My merge conflicts occur mostly with Cocoapods. It seems that if I add a block to a branch, then try to merge it into another, many merge conflicts arise in the project.pbxproj file of my Pods project. I would just go over and fix these conflicts manually, but there are many ways to make this reasonable. Has anyone else encountered this problem and found a reasonable solution. This problem has attacked me now, and I ask this question only as a last resort. After creating several new features on separate branches, the problem of including them in my project is very frustrating. Any help would be very much appreciated.

+5
source share
1 answer

Until you make changes, which probably shouldn't be, to the Pods.xcodeproj file, the source of truth is always what is generated with pod install . Therefore, if there are many conflicts, you can simply delete the project and restore it.

+10
source

Source: https://habr.com/ru/post/1206853/


All Articles