gpt4 book ai didi

ipad - 应用程序收到SIGABRT并在ipad中死亡,但相同的东西可以在模拟器上正常运行

转载 作者:行者123 更新时间:2023-12-03 17:42:08 26 4
gpt4 key购买 nike

我的应用程序可以在模拟器中正常运行,但是每当我将其安装在ipad中时
它收到SIGABRT并死亡

2011-07-05 16:23:59.575 slots2[11008:707] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[NSMutableArray insertObject:atIndex:]: attempt to insert nil object at 0'
*** Call stack at first throw:
(
0 CoreFoundation 0x3398964f __exceptionPreprocess + 114
1 libobjc.A.dylib 0x321d5c5d objc_exception_throw + 24
2 CoreFoundation 0x338f1efd -[__NSArrayM insertObject:atIndex:] + 472
3 CoreFoundation 0x338f1d1b -[__NSArrayM addObject:] + 34
4 slots2 0x00005215 -[slots2ViewController viewDidLoad] + 420
5 UIKit 0x3485ef0f -[UIViewController view] + 110
6 slots2 0x00002d31 -[slots2AppDelegate application:didFinishLaunchingWithOptions:] + 92
7 UIKit 0x3485d821 -[UIApplication _callInitializationDelegatesForURL:payload:suspended:] + 772
8 UIKit 0x34857b65 -[UIApplication _runWithURL:payload:launchOrientation:statusBarStyle:statusBarHidden:] + 272
9 UIKit 0x3482c7d7 -[UIApplication handleEvent:withNewEvent:] + 1114
10 UIKit 0x3482c215 -[UIApplication sendEvent:] + 44
11 UIKit 0x3482bc53 _UIApplicationHandleEvent + 5090
12 GraphicsServices 0x33bcde77 PurpleEventCallback + 666
13 CoreFoundation 0x33960a97 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 26
14 CoreFoundation 0x3396283f __CFRunLoopDoSource1 + 166
15 CoreFoundation 0x3396360d __CFRunLoopRun + 520
16 CoreFoundation 0x338f3ec3 CFRunLoopRunSpecific + 230
17 CoreFoundation 0x338f3dcb CFRunLoopRunInMode + 58
18 UIKit 0x34856d49 -[UIApplication _run] + 372
19 UIKit 0x34854807 UIApplicationMain + 670
20 slots2 0x00002c91 main + 88
21 slots2 0x00002c34 start + 40
)

terminate called after throwing an instance of 'NSException'
Program received signal: “SIGABRT”.
warning: Unable to read symbols for /Developer/Platforms/iPhoneOS.platform/DeviceSupport/4.3.1 (8G4)/Symbols/Developer/usr/lib/libXcodeDebuggerSupport.dylib (file not found).
(gdb)

但是我确定所有文件都存在,因为模拟器中运行了相同的东西

跟随数组是可能是问题的数组
  NSString *SubDir = [NSString stringWithFormat:@"/R/%d",Theme];
for(int i = 0;i<11;i++)
[SpinAnimationArray addObject:[UIImage imageWithContentsOfFile:[[NSBundle mainBundle] pathForResource:[NSString stringWithFormat:@"blur%d",i] ofType:@"png" inDirectory:SubDir]]];

最佳答案

在slot2ViewController viewDidLoad中

您有一个数组,并且您尝试添加索引错误的对象。

和结帐

blur0-blur10 png复制并存在于您的目标中

关于ipad - 应用程序收到SIGABRT并在ipad中死亡,但相同的东西可以在模拟器上正常运行,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6581673/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com