For the life of me I can't imagine that Muhammad Usman's answer here solved my .pbxproj issue. After merge conflict got resolved, closing and re-opening it from Finder does the trick. For reference I am using XCode 15.1.