* [ios] check whether the WXDebugLoggerBridge class is existed
Project: http://git-wip-us.apache.org/repos/asf/incubator-weex/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-weex/commit/9b024080 Tree: http://git-wip-us.apache.org/repos/asf/incubator-weex/tree/9b024080 Diff: http://git-wip-us.apache.org/repos/asf/incubator-weex/diff/9b024080 Branch: refs/heads/0.16-dev Commit: 9b024080ac60c8fbf4c06b157044c72d503c0e87 Parents: 4d122d4 Author: acton393 <[email protected]> Authored: Fri Jul 21 16:45:17 2017 +0800 Committer: acton393 <[email protected]> Committed: Fri Jul 21 16:45:17 2017 +0800 ---------------------------------------------------------------------- ios/sdk/WeexSDK/Sources/Bridge/WXBridgeContext.m | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/9b024080/ios/sdk/WeexSDK/Sources/Bridge/WXBridgeContext.m ---------------------------------------------------------------------- diff --git a/ios/sdk/WeexSDK/Sources/Bridge/WXBridgeContext.m b/ios/sdk/WeexSDK/Sources/Bridge/WXBridgeContext.m index f5ddc64..c96caef 100644 --- a/ios/sdk/WeexSDK/Sources/Bridge/WXBridgeContext.m +++ b/ios/sdk/WeexSDK/Sources/Bridge/WXBridgeContext.m @@ -589,7 +589,9 @@ _Pragma("clang diagnostic pop") \ - (void)connectToWebSocket:(NSURL *)url { - _devToolSocketBridge = [[NSClassFromString(@"WXDebugLoggerBridge") alloc] initWithURL:url]; + if (NSClassFromString(@"WXDebugLoggerBridge")) { + _devToolSocketBridge = [[NSClassFromString(@"WXDebugLoggerBridge") alloc] initWithURL:url]; + } } - (void)logToWebSocket:(NSString *)flag message:(NSString *)message
