You can avoid checking for such a changed value by convincing Git that the contents of the file have not changed.
This is possible with a clean script that will be responsible for storing only the integer value for x.
This script will only apply to .storyboard files (as described here ), and it will have to replace "254.xxx" with "254".
sed -i 's/x=\"([^0-9]+).*\"/x=\"\1\"/g'
File recovery using a script is done using a content filter filter using .gitattributes .

(image from "Configuring Git - Git Attributes" from the Pro Git book "))
Once you declare that this content driver is in the local Git configuration, it will automatically, on git commit , restore the file.
Or it will consider the file immutable on git diff / git status , even if Xcode changes that value.
See the full example in Best Practice - Git + Build Automation - Saving Configurations Separately .
source share