代码之家  ›  专栏  ›  技术社区  ›  erotsppa

在iPhoneSDK中检测到uiActivityIndicatorView?(从uikit崩溃)

  •  0
  • erotsppa  · 技术社区  · 15 年前

    我从iTunesConnect收到以下崩溃报告。是否对uiActivityIndicatorView进行了调试?

    Date/Time:       2009-09-26 12:33:02.034 +1000
    OS Version:      iPhone OS 3.0 (7A341)
    Report Version:  104
    
    Exception Type:  EXC_CRASH (SIGABRT)
    Exception Codes: 0x00000000, 0x00000000
    Crashed Thread:  0
    
    Thread 0 Crashed:
    0   libSystem.B.dylib               0x31d54964 lstat + 8
    1   Foundation                      0x3055baf6 _NSFileExistsAtPath
    2   Foundation                      0x3055f6a2 -[NSFileManager fileExistsAtPath:]
    3   WinterBoard.dylib               0x0019f034 0x19c000 + 12340
    4   WinterBoard.dylib               0x001a032c 0x19c000 + 17196
    5   UIKit                           0x30972650 +[UIActivityIndicatorView _loadResourcesForStyle:]
    6   UIKit                           0x30972498 -[UIActivityIndicatorView setActivityIndicatorViewStyle:]
    7   UIKit                           0x309723bc -[UIActivityIndicatorView initWithFrame:]
    8   UIKit                           0x30a113f8 -[UIActivityIndicatorView initWithActivityIndicatorStyle:]
    

    下面是我创建它的方法:

    UIActivityIndicatorView *act = [[UIActivityIndicatorView alloc] initWithActivityIndicatorStyle:UIActivityIndicatorViewStyleWhiteLarge];
    act.center = CGPointMake(160, 190);
    [act startAnimating];
    [self addSubview:act];    
    [act release];
    
    1 回复  |  直到 15 年前
        1
  •  3
  •   Joost    15 年前

    正如您在日志中看到的,它与 -[NSFileManager fileExistsAtPath:] . 在堆栈跟踪的那一行下面,您可以看到 Winterboard.dylib .

    WinterBoard是越狱iPhone修改苹果不支持的操作系统外观的应用程序。在这种情况下,WinterBoard应该为应用程序崩溃负责,而不是uikit。

    你对此无能为力,这可能是WinterBoard中的一个bug,只有拥有越狱iPhone和WinterBoard的用户才可能有。