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-on: https://chromium-review.googlesource.com/c/chromium/src/+/1620814
Reviewed-by: Mark Mentovai <mark@chromium.org>
Commit-Queue: Robert Sesek <rsesek@chromium.org>
Cr-Commit-Position: refs/heads/master@{#661512}
2 files changed