Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode changes storyboard xml automatically

I recently upgraded the Xcode to 6.3.2. After editing the storyboard, i noticed some strange changes through git: All the

cocoaTouchSystemColor="colour"/>

nodes have been changed to

red="value" green="value" blue="value" alpha="value" colorSpace="calibratedRGB"/>

in the xml file of the storyboard (I have not made those changes for sure).

for example:

cocoaTouchSystemColor="darkTextColor"/>

                ||
                ||
                \/

red="0.0" green="0.0" blue="0.0" alpha="1" colorSpace="calibratedRGB"/>

Does anyone know where this comes from? I guess that this is a new behaviour from the new Xcode version, but its only a gues. Furthermore, are those two values 100% identical? so is for example behind the constant "darkTextColour" the RGB value of 0,0,0?

Thank you.

like image 994
Paul Reznik Avatar asked Jun 05 '15 14:06

Paul Reznik


1 Answers

Xcode has a long history of changing storyboard files on its own. It does the same thing with xib files. It comes from Xcode, by design, and there's nothing that people outside of Apple can do except deal with it. File a bug with Apple. If you like, roll back this change via git or whatever source-control tool you use.

like image 108
Tom Harrington Avatar answered Oct 01 '22 18:10

Tom Harrington