Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(209)

Unified Diff: build/config/ios/find_signing_identity.py

Issue 2452593004: Correct iOS GN hermetic support. (Closed)
Patch Set: Changes for sdefresne Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « build/config/ios/codesign.py ('k') | build/config/ios/ios_sdk.gni » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/config/ios/find_signing_identity.py
diff --git a/build/config/ios/find_signing_identity.py b/build/config/ios/find_signing_identity.py
index 9c3d493d541678b07330ee1863266637b8111a70..67a13a65305bcf6f612bd1a579d470b7362c5f37 100644
--- a/build/config/ios/find_signing_identity.py
+++ b/build/config/ios/find_signing_identity.py
@@ -2,13 +2,14 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
+import argparse
+import os
import subprocess
import sys
import re
def ListIdentities():
return subprocess.check_output([
- '/usr/bin/env',
'xcrun',
'security',
'find-identity',
@@ -32,4 +33,11 @@ def FindValidIdentity():
if __name__ == '__main__':
+ parser = argparse.ArgumentParser('codesign iOS bundles')
+ parser.add_argument('--developer_dir', required=False,
+ help='Path to Xcode.')
+ args = parser.parse_args()
+ if args.developer_dir:
+ os.environ['DEVELOPER_DIR'] = args.developer_dir
+
print FindValidIdentity()
« no previous file with comments | « build/config/ios/codesign.py ('k') | build/config/ios/ios_sdk.gni » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698