wendux / DSBridge-IOS

:earth_asia: A modern cross-platform JavaScript bridge, through which you can invoke each other's functions synchronously or asynchronously between JavaScript and native.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

DSBridge不违背App store策略,请放心使用!

wendux opened this issue · comments

commented

dsBridge并未违反任何AppStore的政策,很多使用DSBridge的APP都已成功过审,大家可以放心使用。

@wendux
貌似没人提交案例啊,我们正准备用,有点怕怕的啊。
请问现在啥情况啦?

昨天(2018-6-7)提交的,今天(2018-6-8)早上被拒。
通过Bugly看到了崩溃日志。

被拒:

Guideline 2.1 - Performance - App Completeness
Your app crashed on iPad running iOS 11.4 connected to an IPv6 network when we tried to log in. 

日志:

NSInvalidArgumentException
Invalid type in JSON write (HNHomeVC)

出错堆栈

0	CoreFoundation          ___exceptionPreprocess + 228
1	libobjc.A.dylib         objc_exception_throw + 56
2	CoreFoundation          -[NSException initWithCoder:]
3	Foundation              __writeJSONValue + 776
4	Foundation              ____writeJSONObject_block_invoke + 192
5	CoreFoundation          -[__NSDictionaryM enumerateKeysAndObjectsWithOptions:usingBlock:] + 232
6	Foundation              __writeJSONObject + 388
7	Foundation              -[_NSJSONWriter dataWithRootObject:options:error:] + 140
8	Foundation              +[NSJSONSerialization dataWithJSONObject:options:error:] + 356
9	QuBar                   +[JSBUtil objToJsonString:] (JSBUtil.m:0)
10	QuBar                   -[DWKWebView call::] (DWKWebView.m:322)
11	QuBar                   -[DWKWebView webView:runJavaScriptTextInputPanelWithPrompt:defaultText:initiatedByFrame:completionHandler:] (DWKWebView.m:0)
12	WebKit                  0x0000000194d36000 + 1423092
13	WebKit                  0x0000000194d36000 + 2418236
14	WebKit                  0x0000000194d36000 + 2566916
15	WebKit                  0x0000000194d36000 + 575060
16	WebKit                  0x0000000194d36000 + 2927336
17	WebKit                  0x0000000194d36000 + 336060
18	WebKit                  0x0000000194d36000 + 325844
19	WebKit                  0x0000000194d36000 + 336628

在此处挂了

[JSBUtil objToJsonString:]

转换前没有做判断:isValidJSONObject:

趣Bar [过审] [2018-06-14]

手机可扫码下载:
趣Bar

PC可访问:
https://itunes.apple.com/cn/app/id1395026819

commented

@xjh093 改一下,提个pr呗😄

--From gitme Android

JSBUtil objToJsonString 这个方法确实需要判断一下再执行,debug模式下就直接挂了,release的话还会catch下保证不会挂。

commented

@Tanyd31 已更新