parameters: (self, key, resource_rules, entitlements, provisioning)
docstring: Code sign a bundle.
  
      This function tries to code sign an iOS bundle, following the same
      algorithm as Xcode:
        1. copy ResourceRules.plist from the user or the SDK into the bundle,
        2. pick the provisioning profile that best match the bundle identifier,
           and copy it into the bundle as embedded.mobileprovision,
        3. copy Entitlements.plist from user or SDK next to the bundle,
        4. code sign the bundle.
docstring_summary: Code sign a bundle.
docstring_tokens: Code sign a bundle .
function: def ExecCodeSignBundle(self, key, resource_rules, entitlements, provisioning):
      """Code sign a bundle.
  
      This function tries to code sign an iOS bundle, following the same
      algorithm as Xcode:
        1. copy ResourceRules.plist from the user or the SDK into the bundle,
        2. pick the provisioning profile that best match the bundle identifier,
           and copy it into the bundle as embedded.mobileprovision,
        3. copy Entitlements.plist from user or SDK next to the bundle,
        4. code sign the bundle.
      """
      resource_rules_path = self._InstallResourceRules(resource_rules)
      substitutions, overrides = self._InstallProvisioningProfile(
          provisioning, self._GetCFBundleIdentifier())
      entitlements_path = self._InstallEntitlements(
          entitlements, substitutions, overrides)
      subprocess.check_call([
          'codesign', '--force', '--sign', key, '--resource-rules',
          resource_rules_path, '--entitlements', entitlements_path,
          os.path.join(
              os.environ['TARGET_BUILD_DIR'],
              os.environ['FULL_PRODUCT_NAME'])])
function_tokens: def ExecCodeSignBundle ( self , key , resource_rules , entitlements , provisioning ) : resource_rules_path = self . _InstallResourceRules ( resource_rules ) substitutions , overrides = self . _InstallProvisioningProfile ( provisioning , self . _GetCFBundleIdentifier ( ) ) entitlements_path = self . _InstallEntitlements ( entitlements , substitutions , overrides ) subprocess . check_call ( [ 'codesign' , '--force' , '--sign' , key , '--resource-rules' , resource_rules_path , '--entitlements' , entitlements_path , os . path . join ( os . environ [ 'TARGET_BUILD_DIR' ] , os . environ [ 'FULL_PRODUCT_NAME' ] ) ] )