macOS Signing Scripts: Skip requirements strings if signing ad hoc.

When signing with the ad hoc identity, codesign(1) appends a hash to the
identifier. This would violate most kinds of requirements (which are
based on identifiers), so skip them when signing ad hoc.

Bug: 964611, 958163
Change-Id: I1656b2a0c524d1fbfec02a3cd69fc3a1dd386d98
Reviewed-by: Mark Mentovai <>
Commit-Queue: Robert Sesek <>
Cr-Commit-Position: refs/heads/master@{#661512}
2 files changed