summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoel Fischer <joeljfischer@gmail.com>2017-10-30 13:24:05 -0400
committerJoel Fischer <joeljfischer@gmail.com>2017-10-30 13:24:05 -0400
commit3b74365ffda8fd1a85f1a1dee77eab922fdf59ba (patch)
tree6654cfd0d291eb07eb65b39b9b262b52a171ddcf
parentdd9d15d8ebcc38e81c755c014155803a0f89bfe5 (diff)
downloadsdl_ios-3b74365ffda8fd1a85f1a1dee77eab922fdf59ba.tar.gz
Check required protocol strings in all locations
-rw-r--r--SmartDeviceLink/SDLIAPTransport.m7
1 files changed, 7 insertions, 0 deletions
diff --git a/SmartDeviceLink/SDLIAPTransport.m b/SmartDeviceLink/SDLIAPTransport.m
index 83fa35810..68b967e5d 100644
--- a/SmartDeviceLink/SDLIAPTransport.m
+++ b/SmartDeviceLink/SDLIAPTransport.m
@@ -316,6 +316,13 @@ int const ProtocolIndexTimeoutSeconds = 20;
// Connection underway, exit
return;
}
+
+ if ([self.class sdl_supportsRequiredProtocolStrings] != nil) {
+ NSString *failedString = [self.class sdl_supportsRequiredProtocolStrings];
+ SDLLogE(@"A required External Accessory protocol string is missing from the info.plist: %@", failedString);
+ NSAssert(NO, @"Some SDL protocol strings are not supported, check the README for all strings that must be included in your info.plist file. Missing string: %@", failedString);
+ return;
+ }
// Determine if we can start a multi-app session or a legacy (single-app) session
if ((sdlAccessory = [EAAccessoryManager findAccessoryForProtocol:MultiSessionProtocolString]) && SDL_SYSTEM_VERSION_GREATER_THAN_OR_EQUAL_TO(@"9")) {