'Return a shell command to codesign the iOS output binary so it can
be deployed to a device.  This should be run as the very last step of the
build.'

def _GetIOSPostbuilds(self, configname, output_binary):

    if (not ((self.isIOS and ((self.spec['type'] == 'executable') or self._IsXCTest())) or self.IsIosFramework())):
        return []
    settings = self.xcode_settings[configname]
    key = self._GetIOSCodeSignIdentityKey(settings)
    if (not key):
        return []
    unimpl = ['OTHER_CODE_SIGN_FLAGS']
    unimpl = (set(unimpl) & set(self.xcode_settings[configname].keys()))
    if unimpl:
        print ('Warning:    Some    codesign    keys    not    implemented,    ignoring:    %s' % ',    '.join(sorted(unimpl)))
    return [('%s    code-sign-bundle    "%s"    "%s"    "%s"' % (os.path.join('${TARGET_BUILD_DIR}', 'gyp-mac-tool'), key, settings.get('CODE_SIGN_ENTITLEMENTS', ''), settings.get('PROVISIONING_PROFILE', '')))]
