Xcode 7.0: Font string duplicated

Originator:random4444
Number:rdar://22962708 Date Originated:03-Oct-2015 09:08 AM
Status:Open Resolved:
Product:Developer Tools Product Version:Xcode 7.0 (7A220)
Classification:Other Bug Reproducible:I Didn't Try
 
Summary:
Change several labels in a storyboard scene to the same custom font. The diff for storyboard xml shows duplicate strings being added each time.

Steps to Reproduce:
1. Open Xcode to a storyboard with several labels.
2. Change a label to a custom font and commit.
3. Change another label to the same custom font and weight. 
4. Look at the diff for the storyboard change.

Expected Results:
No new custom fonts added at the top. Specifically:
“<mutableArray key="Brownfox - Geometria.otf">
            <string>Geometria</string>
        </mutableArray>”
Should have only one string in it that says “Geometria”.

Actual Results:
This string in Storyboard file:
“        <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="8154"/>
        <capability name="Constraints with non-1.0 multipliers" minToolsVersion="5.1"/>
    </dependencies>
    <customFonts key="customFonts">
        <mutableArray key="Brownfox - Geometria Medium.otf">
            <string>Geometria-Medium</string>
        </mutableArray>
        <mutableArray key="Brownfox - Geometria.otf">
            <string>Geometria</string>
            <string>Geometria</string>
            <string>Geometria</string>
            <string>Geometria</string>
        </mutableArray>
    </customFonts>
    <scenes>“
Regression:
Did not test.

Notes:
NA

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!