Index: build/config/ios/codesign.py |
diff --git a/build/config/ios/codesign.py b/build/config/ios/codesign.py |
index 9c0575a9bb10d91b88be0e3e5d9fe7023c1d884b..b197bac7e9bfa14bd600790838ede6e9c84b8730 100644 |
--- a/build/config/ios/codesign.py |
+++ b/build/config/ios/codesign.py |
@@ -414,6 +414,8 @@ class GenerateEntitlementsAction(Action): |
def Main(): |
parser = argparse.ArgumentParser('codesign iOS bundles') |
+ parser.add_argument('--developer_dir', required=False, |
+ help='Path to Xcode.') |
subparsers = parser.add_subparsers() |
actions = [ |
@@ -426,6 +428,8 @@ def Main(): |
action.Register(subparsers) |
args = parser.parse_args() |
+ if args.developer_dir: |
+ os.environ['DEVELOPER_DIR'] = args.developer_dir |
args.func(args) |