getting merge conflicts with inferredMetricsTieBreakers in Storyboard file

后端 未结 4 1947
攒了一身酷
攒了一身酷 2021-02-01 13:07

Whenever I get a conflict in a storyboard file, I can usually resolve it. However, I have an issue that has now come up twice in two weeks.

At the very bottom of my Stor

4条回答
  •  既然无缘
    2021-02-01 13:51

    It looks like, the tie breakers occur when in the storyboard one view controller is connected from two or more other view controllers via segues and its simulated metrics setting is set to "inferred" but Xcode cannot make sure that inferred means exactly one metrics setting (landscape or portrait) in every case.

    I fixed it by changing all controllers simulated metrics to "inferred" and all metrics are inferred from a controller that has fixed simulated metrics setting "landscape". After that I removed the tie breaker segue ids from the section (but not the section itself).

提交回复
热议问题