From c37e9835a7694a2adf1916c05e54f0661cc962d0 Mon Sep 17 00:00:00 2001 From: kthelgason Date: Thu, 22 Sep 2016 08:00:52 -0700 Subject: [PATCH] Add custom info.plist to modules_unittests This is to fix an issue introduced with iOS 10 where all applications that access the microphone have to include a string in the Info.plist file explaining why they need it. BUG=webrtc:6403 Review-Url: https://codereview.webrtc.org/2359863003 Cr-Commit-Position: refs/heads/master@{#14354} --- webrtc/modules/BUILD.gn | 1 + webrtc/test/ios/Info.plist | 47 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 48 insertions(+) create mode 100644 webrtc/test/ios/Info.plist diff --git a/webrtc/modules/BUILD.gn b/webrtc/modules/BUILD.gn index 6b7928f6f5..fe8124d790 100644 --- a/webrtc/modules/BUILD.gn +++ b/webrtc/modules/BUILD.gn @@ -684,6 +684,7 @@ if (rtc_include_tests) { shard_timeout = 900 } if (is_ios) { + info_plist = "//webrtc/test/ios/Info.plist" deps += [ ":modules_unittests_bundle_data" ] configs += [ "..:common_objc", diff --git a/webrtc/test/ios/Info.plist b/webrtc/test/ios/Info.plist new file mode 100644 index 0000000000..3adbe7cff6 --- /dev/null +++ b/webrtc/test/ios/Info.plist @@ -0,0 +1,47 @@ + + + + + CFBundleDevelopmentRegion + English + CFBundleDisplayName + ${PRODUCT_NAME} + CFBundleExecutable + ${EXECUTABLE_NAME} + CFBundleIdentifier + com.google.gtest.${BUNDLE_ID_TEST_NAME:rfc1034identifier} + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + ${PRODUCT_NAME} + CFBundlePackageType + APPL + CFBundleSignature + ???? + CFBundleVersion + 1.0 + LSRequiresIPhoneOS + + NSAppTransportSecurity + + NSAllowsArbitraryLoads + + + NSMainNibFile + ${MAIN_NIB_FILE} + UIFileSharingEnabled + + UISupportedInterfaceOrientation + + UIInterfaceOrientationPortrait + UIInterfaceOrientationLandscapeLeft + UIInterfaceOrientationLandscapeRight + + UIBackgroundModes + + fetch + + NSMicrophoneUsageDescription + For testing purposes + +