Adds XCTAutomationSupport as framework to sign.
This is in preparation of Xcode 9, as it's needed
to run UI iOS tests on devices.
--
PiperOrigin-RevId: 168389669
MOS_MIGRATED_REVID=168389669
diff --git a/src/TulsiGenerator/Scripts/bazel_build.py b/src/TulsiGenerator/Scripts/bazel_build.py
index 1688401..b9120cf 100755
--- a/src/TulsiGenerator/Scripts/bazel_build.py
+++ b/src/TulsiGenerator/Scripts/bazel_build.py
@@ -37,6 +37,15 @@
import tulsi_logging
+# List of frameworks that Xcode injects into test host targets that should be
+# re-signed when running the tests on devices.
+XCODE_INJECTED_FRAMEWORKS = [
+ 'IDEBundleInjection',
+ 'XCTAutomationSupport',
+ 'XCTest',
+]
+
+
def _PrintXcodeWarning(msg):
sys.stdout.write(':: warning: %s\n' % msg)
sys.stdout.flush()
@@ -1288,9 +1297,7 @@
if not self.codesigning_allowed:
return 0
- xcode_injected_frameworks = ['XCTest', 'IDEBundleInjection']
-
- for framework in xcode_injected_frameworks:
+ for framework in XCODE_INJECTED_FRAMEWORKS:
framework_path = os.path.join(
bundle, 'Frameworks', '%s.framework' % framework)
if os.path.isdir(framework_path):