Skip to content

Changing XIB requires two syncs #1

@pmuilu

Description

@pmuilu

This is an issue with ibtool / GL for Mac sync order.

> ibtool --strings-file de.lproj/SXBadgeViewController.strings Base.lproj/SXBadgeViewController.xib --write de.lproj/SXBadgeViewController.xib

Results: 

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
    <key>com.apple.ibtool.errors</key>
    <array>
        <dict>
            <key>description</key>
            <string>The strings file "SXBadgeViewController.strings" could not be applied.</string>
            <key>recovery-suggestion</key>
            <string>Missing object referenced from oid-keyed mapping. Object ID fDG-N8-B8Q</string>
            <key>underlying-errors</key>
            <array>
                <dict>
                    <key>description</key>
                    <string>The strings file "SXBadgeViewController.strings" could not be applied.</string>
                    <key>recovery-suggestion</key>
                    <string>Missing object referenced from oid-keyed mapping. Object ID fDG-N8-B8Q</string>
                </dict>
            </array>
        </dict>
    </array>
</dict>
</plist>

This happens because ibtool requires (most likely a bug rdar #7801770) that all the keys that exist in localized strings file, exist also in master strings file. As we first download strings from server and then update the latest strings file, it never really passes the ibtool first time as above error is thrown.

Possible fixes:

  • Wait that Apple fixes ibtool (unlikely)
  • Try to fix the strings file locally
  • Change upload/download order so that we wait that master files are updated on server, then download translations (slows down the sync)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions