【问题标题】:Google Cast SDK for iOS crash with DCIntrospect适用于 iOS 的 Google Cast SDK 因 DCIntrospect 而崩溃
【发布时间】:2014-04-14 21:15:57
【问题描述】:

在我的应用程序中,当我添加 googleCast SDK 时,应用程序在启动时崩溃,使用此方法 [[DCIntrospect sharedIntrospector] start];。但是当我没有 GoogleCast SDK 时,一切正常。

这是断言日志:

*** Assertion failure in -[GCKPB_PBFieldDescriptor initWithFieldDescription:rootClass:], /Volumes/BuildData/pulse-data/agents/wpye22.hot/recipes/415961027/base/googlemac/iPhone/Chromecast/SDKv2/Protos/../../../../ThirdParty/ProtocolBuffers/objectivec/Classes/PBDescriptor.m:409 This works fine if I run the project on an iPhone 5C, but crashing on the simulator (32-bit simulator).

关于如何解决此崩溃并继续使用DCIntrospect 的任何想法?

【问题讨论】:

    标签: ios iphone objective-c google-cast


    【解决方案1】:

    我遇到了同样的问题。
    我能够重现这个问题,所以我提交了this bug

    Introspection 触发 GCKPB_PBGeneratedMessage 类的 +initialize 方法。 这种方法显然对何时触发 +initialize 做出了一些错误的假设。

    【讨论】:

      【解决方案2】:

      在等待修复时,您始终可以使用建议的解决方法 here 和模拟 GCKPB_PBGeneratedMessage+initialize 方法。

      【讨论】:

        猜你喜欢
        • 2015-09-11
        • 2016-12-28
        • 2013-05-11
        • 1970-01-01
        • 2023-03-11
        • 2017-11-20
        • 1970-01-01
        • 1970-01-01
        • 2015-01-15
        相关资源
        最近更新 更多