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() |