Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/iphone/36.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Iphone EXC_CRASH(SIGABRT)无法追踪到它-请参阅随附的崩溃日志-GADObjectPrivate.m_Iphone_Xcode_Ipad_Crash_Sigabrt - Fatal编程技术网

Iphone EXC_CRASH(SIGABRT)无法追踪到它-请参阅随附的崩溃日志-GADObjectPrivate.m

Iphone EXC_CRASH(SIGABRT)无法追踪到它-请参阅随附的崩溃日志-GADObjectPrivate.m,iphone,xcode,ipad,crash,sigabrt,Iphone,Xcode,Ipad,Crash,Sigabrt,我的一个应用程序有问题,苹果公司拒绝了它,因为它在发布时崩溃了,但我无法复制。我甚至为另一个设备提供了一个临时构建来进行测试,它工作得很好。 不管怎么说,他们发送了事故日志,我在Organizer中打开了它来象征 异常类型:EXC_崩溃(SIGABRT) 异常代码:0x0000000000,0x0000000000000000 崩溃线程:0 Last Exception Backtrace: 0 CoreFoundation 0x3311d29e __exc

我的一个应用程序有问题,苹果公司拒绝了它,因为它在发布时崩溃了,但我无法复制。我甚至为另一个设备提供了一个临时构建来进行测试,它工作得很好。 不管怎么说,他们发送了事故日志,我在Organizer中打开了它来象征

异常类型:EXC_崩溃(SIGABRT) 异常代码:0x0000000000,0x0000000000000000 崩溃线程:0

Last Exception Backtrace:
0   CoreFoundation                  0x3311d29e __exceptionPreprocess + 158
1   libobjc.A.dylib                 0x39dff97a objc_exception_throw + 26
2   CoreFoundation                  0x33120e02 -[NSObject(NSObject) doesNotRecognizeSelector:] + 166
3   CoreFoundation                  0x3311f52c ___forwarding___ + 388
4   CoreFoundation                  0x33076f64 _CF_forwarding_prep_0 + 20
5   diamondlite                 0x00065aec -[GADObjectPrivate loadPrivateRequest:autoRefresh:] (GADObjectPrivate.m:402)
6   diamondlite                 0x00067540 -[GADObjectPrivate loadRequest:] (GADObjectPrivate.m:827)
7   diamondlite                 0x0006501c -[GADBannerView loadRequest:] (GADBannerView.m:271)
8   diamondlite                 0x00012f40 -[GalleryViewControllerViewController viewWillAppear:] (GalleryViewControllerViewController.m:94)
9   UIKit                           0x38e94314 -[UIViewController _setViewAppearState:isAnimating:] + 132
10  UIKit                           0x38ea08bc -[UINavigationController _startTransition:fromViewController:toViewController:] + 828
11  UIKit                           0x38ea04a4 -[UINavigationController _startDeferredTransitionIfNeeded:] + 320
12  UIKit                           0x38e714dc -[UILayoutContainerView layoutSubviews] + 176
13  UIKit                           0x38e307fe -[UIView(CALayerDelegate) layoutSublayersOfLayer:] + 254
14  QuartzCore                      0x3ab04d5e -[CALayer layoutSublayers] + 210
15  QuartzCore                      0x3ab048fc CA::Layer::layout_if_needed(CA::Transaction*) + 456
16  QuartzCore                      0x3ab337a2 -[CALayer layoutIfNeeded] + 138
17  UIKit                           0x38eda0c4 -[UIViewController window:setupWithInterfaceOrientation:] + 204
18  UIKit                           0x38ed92b0 -[UIWindow _setRotatableClient:toOrientation:updateStatusBar:duration:force:isRotating:] + 3616
19  UIKit                           0x38ed8482 -[UIWindow _setRotatableClient:toOrientation:updateStatusBar:duration:force:] + 42
20  UIKit                           0x38ed840c -[UIWindow _setRotatableViewOrientation:duration:force:] + 64
21  UIKit                           0x3900e17c __57-[UIWindow _updateToInterfaceOrientation:duration:force:]_block_invoke_0 + 100
22  UIKit                           0x38e96674 -[UIWindow _updateToInterfaceOrientation:duration:force:] + 212
23  UIKit                           0x38e963b8 -[UIWindow setAutorotates:forceUpdateInterfaceOrientation:] + 688
24  UIKit                           0x38e95d26 -[UIViewController _tryBecomeRootViewControllerInWindow:] + 154
25  UIKit                           0x38e8ce9e -[UIWindow addRootViewControllerViewIfPossible] + 366
26  UIKit                           0x38e88ae0 -[UIWindow _setHidden:forced:] + 360
27  UIKit                           0x38eca1c4 -[UIWindow makeKeyAndVisible] + 56
28  diamondlite                 0x000112fc -[AppDelegate application:didFinishLaunchingWithOptions:] (AppDelegate.m:96)
29  UIKit                           0x38e8dacc -[UIApplication _handleDelegateCallbacksWithOptions:isSuspended:restoreState:] + 248
30  UIKit                           0x38e8d656 -[UIApplication _callInitializationDelegatesForURL:payload:suspended:] + 1186
31  UIKit                           0x38e8583e -[UIApplication _runWithURL:payload:launchOrientation:statusBarStyle:statusBarHidden:] + 694
32  UIKit                           0x38e2dc34 -[UIApplication handleEvent:withNewEvent:] + 1000
33  UIKit                           0x38e2d6c8 -[UIApplication sendEvent:] + 68
34  UIKit                           0x38e2d116 _UIApplicationHandleEvent + 6150
35  GraphicsServices                0x365a959e _PurpleEventCallback + 586
36  GraphicsServices                0x365a91ce PurpleEventCallback + 30
37  CoreFoundation                  0x330f216e __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 30
38  CoreFoundation                  0x330f2112 __CFRunLoopDoSource1 + 134
39  CoreFoundation                  0x330f0f94 __CFRunLoopRun + 1380
40  CoreFoundation                  0x33063eb8 0x3305b000 + 36536
41  CoreFoundation                  0x33063d44 0x3305b000 + 36164
42  UIKit                           0x38e84478 0x38e2a000 + 369784
43  UIKit                           0x38e812f4 UIApplicationMain + 1116
44  diamondlite                 0x00010dc2 main (main.m:16)
45  diamondlite                 0x00010d5c start + 36


Thread 0 name:  Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0   libsystem_kernel.dylib          0x32047350 __pthread_kill + 8
1   libsystem_c.dylib               0x39d9e11e pthread_kill + 54
2   libsystem_c.dylib               0x39dda96e abort + 90
3   libc++abi.dylib                 0x37fa7d4a abort_message + 70
4   libc++abi.dylib                 0x37fa4ff4 default_terminate() + 20
5   libobjc.A.dylib                 0x39dffa74 _objc_terminate() + 144
6   libc++abi.dylib                 0x37fa5078 safe_handler_caller(void (*)()) + 76
7   libc++abi.dylib                 0x37fa5110 std::terminate() + 16
8   libc++abi.dylib                 0x37fa6594 __cxa_rethrow + 84
9   libobjc.A.dylib                 0x39dff9cc objc_exception_rethrow + 8
10  CoreFoundation                  0x33063f1c CFRunLoopRunSpecific + 452
11  CoreFoundation                  0x33063d44 CFRunLoopRunInMode + 100
12  UIKit                           0x38e84478 -[UIApplication _run] + 664
13  UIKit                           0x38e812f4 UIApplicationMain + 1116
14  diamondlite                 0x00010dc2 main (main.m:16)
15  diamondlite                 0x00010d5c start + 36
最后还说,

Thread 0 crashed with ARM Thread State (32-bit):
    r0: 0x00000000    r1: 0x00000000      r2: 0x00000000      r3: 0x3cbef534
    r4: 0x00000006    r5: 0x3cbefb88      r6: 0x1dd82414      r7: 0x2fdf2a14
    r8: 0x1dd823f0    r9: 0x00000300     r10: 0x00000000     r11: 0x000b55de
    ip: 0x00000148    sp: 0x2fdf2a08      lr: 0x39d9e123      pc: 0x32047350
  cpsr: 0x00000010
我只是不知道是什么导致了这个问题?因为我无法在我的设备上复制它,这使得它更加困难-我希望有人能帮助我

谢谢


Chris

答案是将Admob横幅请求移动到ViewDidAspect部分,奇怪的是,这似乎解决了它:)

我遇到了完全相同的问题,但导致它的原因略有不同。无论何时我从XCode运行应用程序,它都运行得非常好,但应用商店还是友好地拒绝了它

不幸的是,他们做对了,应用程序在发布时就崩溃了 异常代码:0x0000000000,0x0000000000000000

直到我最终意识到归档构建对调试构建使用了不同的构建设置之后,我才能够复制它

我的错误是,我已经重命名了我的故事板,开发人员仍然选择了它的一个版本,但归档构建没有

从中吸取的教训:

  • 始终创建一个归档构建,并使用临时文件分发 在主办方中分发(请勿使用您的分发签名 实体进行签名。)
  • 将它创建的IPA文件拖到iTunes中
  • 从设备中删除应用程序
  • 将IPA创建的新应用部署到您的设备

您现在正在运行将发送到Appstore的实际生成,并且应该能够重现一些严重错误。

此问题与缺少-ObjC链接器标志有关

因此,添加linker flag-objC-debug和release(用于归档的概要文件)


您还可以使用临时概要文件测试您的发布二进制文件。

此文件第402行发生了什么:GADObjectPrivate.m?(崩溃表示您正在调用的对象不存在的方法。)您好,我甚至在代码中找不到该文件…:/GAD文件来自GoogleedMobadSDKIOS-6.2.1,但该文件夹中的文件均未命名为GADObjectPrivate.m如何从GalleryViewControllerServiceController.m:94开始,然后从那里开始查看调用内容,依此类推?
如果(![[InAppRageIAPHelper sharedHelper]。purchasedProducts包含对象:@“com.adamsapps.diamondslite.pro”]&![[InAppRageIAPHelper sharedHelper].purchasedProducts ContainesObject:@“com.adamsapps.diamondslitehd.pro”]{upgradeButton.hidden=NO;[bannerView_uuu加载请求:[GADRequest]];}其他{upgradeButton.hidden=YES;}-(void)视图显示:(BOOL)已设置动画的{[super ViewDidDisplay:animated];如果([self.tblData count]>([self.objScrollView.subviews count]-2)){[self addViews];}[self-addViews:0];}
,这是有意义的,因为;匹配下一个堆栈帧。我不熟悉GAD类,因此猜不出它们需要什么。您可能希望在标记或问题的标题中添加一些对它们的引用,看看是否可以吸引有这种经验的人。