为什么启用推送通知的 Mobilefirst 7.0 iOS 应用程序崩溃?

Why is Mobilefirst 7.0 iOS App with Push Notifications Enabled Crashing?

我的 iOS 应用程序(使用 Mobilefirst 7 生成)在我登录后出现异常。该应用程序尝试连接到 Mobilefirst 服务器并尝试注册推送通知。崩溃就发生在这一刻。 我看到了一张 IBM 的票据,这是针对此提出的。 http://www-01.ibm.com/support/docview.wss?uid=swg1PI42699

我遇到了完全相同的问题。 例外是

: -[__NSCFBoolean stringByAddingPercentEscapesUsingEncoding:]: unrecognized selector sent to instance 0x1987b22f0 developerones-iPad MyAppName[207] : *** WebKit discarded an uncaught exception in the webView:decidePolicyForNavigationAction:request:frame:decisionLi stener: delegate: -[__NSCFBoolean stringByAddingPercentEscapesUsingEncoding:]: unrecognized selector sent to instance 0x1987b22f0

此工单中有一个解决方案,但我找不到名为 ios-gap.js 的文件。有没有人遇到过同样的问题。

这是一个产品错误。 这是您链接到的 APAR 所建议的。

APAR 是固定的。
您需要做的是通过访问 IBM Fix Central 并下载更新的 Studio 来确保您使用的是最新的 MobileFirst Platform 7.0 iFix,然后重新构建您的项目并验证崩溃不再发生。