English 中文(简体)
存档的照相机只剩下5.1架,而不是5架。
原标题:Archived app crashes only on iOS 5.1 not on 5.0

我已存档,供测试。

when i run this app , I dont find any crash on ios5 Version.( i dont have 5.1 device) But my client has 5.1 version, when he tried he got crash when tapping on some button inside the app.

因此,我向他提出了坠毁报告,报告内容如下:

Date/Time:       2012-04-23 12:54:10.320 +1000
OS Version:      iPhone OS 5.1 (9B179)
Report Version:  104

Exception Type:  EXC_CRASH (SIGABRT)
Exception Codes: 0x00000000, 0x00000000
Crashed Thread:  0

Last Exception Backtrace:
(0x3788488f 0x35d8a259 0x37884789 0x378847ab 0x38037a1b 0x9451 0x2493b 0x33f69e33 0x33f76391 0x33f76201 0x33f760e7 0x33f75969 0x33f756ab 0x33f69ca7 0x33f6997d 0xb397 0xc21f 0x3408f3cb 0x377de3fd 0x33f4bfaf 0x33f4bf6b 0x33f4bf49 0x33f4bcb9 0x33f4c5f1 0x33f4aad3 0x33f4a4c1 0x33f3083d 0x33f300e3 0x326e822b 0x37858523 0x378584c5 0x37857313 0x377da4a5 0x377da36d 0x326e7439 0x33f5ee7d 0x25f7 0x25b0)

    Thread 0 name:  Dispatch queue: com.apple.main-thread
    Thread 0 Crashed:
    0   libsystem_kernel.dylib          0x35d0332c 0x35cf2000 + 70444
    1   libsystem_c.dylib               0x31e51208 0x31e04000 + 315912
    2   libsystem_c.dylib               0x31e4a298 0x31e04000 + 287384
    3   libc++abi.dylib                 0x35456f64 0x35450000 + 28516
    4   libc++abi.dylib                 0x35454346 0x35450000 + 17222
    5   libobjc.A.dylib                 0x35d8a350 0x35d81000 + 37712
    6   libc++abi.dylib                 0x354543be 0x35450000 + 17342
    7   libc++abi.dylib                 0x3545444a 0x35450000 + 17482
    8   libc++abi.dylib                 0x3545581e 0x35450000 + 22558
    9   libobjc.A.dylib                 0x35d8a2a2 0x35d81000 + 37538
    10  CoreFoundation                  0x377da506 0x377cb000 + 62726
    11  CoreFoundation                  0x377da366 0x377cb000 + 62310
    12  GraphicsServices                0x326e7432 0x326e3000 + 17458
    13  UIKit                           0x33f5ee76 0x33f2d000 + 204406
    14  MyApp                           0x000025f0 0x1000 + 5616
    15  MyApp                           0x000025a8 0x1000 + 5544

当一度在码头卸下坠毁报告时,

armv7 0x000025f0 main (in MyApp) (main.m:14)

armv7 0x000025a8start (in MyApp) + 32

但我不知道它所描述的内容。

感谢你们的帮助。

问题回答

SIGABRT是最常见的坠毁类型。 如果说是Peter 3gs,你的客户正在使用一个新的Pi 4/4,例如,你可以汇编不同结构(Armv6/7),确保在这种情况下对Arv6的固定结构,并看看你使用的方法之一。 参看主文。 很多情况下,你必须使用SiberS差异法(但大多数是Sisco4/iOS5)。

我也存在同样的问题,因此,我正在使用我的附录中的核心数据,这样,如果你使用核心数据,也许这一答案会帮助你,我通过修改<代码>persistentStoreCo Coordinator而确定地雷。 储存代码。

    ....
    - (NSPersistentStoreCoordinator *)persistentStoreCoordinator {

        if (persistentStoreCoordinator != nil) {
            return persistentStoreCoordinator;
        }

        NSURL *storeUrl = [NSURL fileURLWithPath:[[self applicationDocumentsDirectory] stringByAppendingFormat:@"yourdb.sqlite"]] ;
    ....

检查

NSURL *storeUrl = [NSURL fileURLWithPath:[[self applicationDocumentsDirectory] stringByAppendingFormat:@"yourdb.sqlite"]] ;

2. 将上述线路改为:

NSURL *storeUrl = [NSURL fileURLWithPath:[[self applicationDocumentsDirectory] stringByAppendingPathComponent:@"yourdb.sqlite"]] ;

这刚刚解决了我的问题。





相关问题
List Contents of Directory in a UITableView

I am trying to list the contents of Ringtones directory in a TableView, however, I am only getting the last file in the directory in ALL cells, instead of file per cell. This is my code: - (...

iPhone NSUserDefaults persistance difficulty

In my app i have a bunch of data i store in the NSUserdefaults. This information consists of an NSObject (Object1) with NSStrings and NSNumbers and also 2 instances of yet another object (Object2). ...

Writing a masked image to disk as a PNG file

Basically I m downloading images off of a webserver and then caching them to the disk, but before I do so I want to mask them. I m using the masking code everyone seems to point at which can be found ...

Resize UIImage with aspect ratio?

I m using this code to resize an image on the iPhone: CGRect screenRect = CGRectMake(0, 0, 320.0, 480.0); UIGraphicsBeginImageContext(screenRect.size); [value drawInRect:screenRect blendMode:...

Allowing interaction with a UIView under another UIView

Is there a simple way of allowing interaction with a button in a UIView that lies under another UIView - where there are no actual objects from the top UIView on top of the button? For instance, ...

热门标签