繁体   English   中英

应用在iPhone6上启动时崩溃,在iPhone4s和iPad Retina和iPhone6模拟器上运行良好

[英]App crashes at launch on iPhone6, runs fine on iPhone4s and iPad Retina and iPhone6 simulator

iPhone6在应用程序开发过程中一直运行良好; 当我添加iPhone4s时,它停止工作(该应用程序与iPad Retina都可以正常运行)。 当我从iPhone6删除该应用程序并再次下载时,我在iPhone6上遇到“信任”问题,但说“是”无济于事。 iPhone6在小牛的iTunes中仍然可以识别。 这种情况以前发生过一次,但在尝试重新启动各种Mac和iPhone之后又鬼混了,然后又开始工作了,我不知道自己做了什么。 这次我无法清除; 我得到了启动画面,然后崩溃了。 真令人沮丧

您知道让Mac和iPhone6再次对话的魔力吗?

谢谢!!!

iPhone崩溃:

 Incident Identifier: 3C33B554-EBF3-4AE3-B060-6E4EBAE4A1F2
   CrashReporter Key:   1ea3487f41d2b6e8c654694d1aeb4eda4ac9cf1f
   Hardware Model:      iPhone7,2
   Process:             XxxxXxxx [261]
   Path:                /private/var/mobile/Containers/Bundle/Application/C243C18C-D322-40E6-8803-B801EFB219DD/XxxxXxxx.app/XxxxXxxx
   Identifier:          com.xxxxxxx. XxxxXxxx
   Version:             1.0 (1.0)
   Code Type:           ARM-64 (Native)
   Parent Process:      launchd [1]

   Date/Time:           2015-01-04 15:47:21.425 -0800
   Launch Time:         2015-01-04 15:47:21.283 -0800
   OS Version:          iOS 8.1.2 (12B440)
   Report Version:      105

   Exception Type:  EXC_BAD_ACCESS (SIGSEGV)
   Exception Subtype: KERN_INVALID_ADDRESS at 0x000000016fbd9950
   Triggered by Thread:  0

   Thread 0 name:  Dispatch queue: com.apple.main-thread
   Thread 0 Crashed:
   0   XxxxXxxx                         0x0000000100d3a3dc 0x1000ac000 + 13165532
   1   UIKit                            0x0000000188938a9c -[UIViewController loadViewIfRequired] + 688
   2   UIKit                            0x00000001889387ac -[UIViewController view] + 28
   3   UIKit                            0x000000018893ee74 -[UIWindow addRootViewControllerViewIfPossible] + 68

Xcode 6方面:

#import <UIKit/UIKit.h>

#import "XXXAppDelegate.h"

int main(int argc, char * argv[])
{
    @autoreleasepool {
        return UIApplicationMain(argc, argv, nil, NSStringFromClass([RIVAppDelegate class]));  Thread 1:EXC_BAD_ACCESS (code=1, address=0x16fc41830)
    }
}

我正在向Apple提交一个编译器/链接器/加载器错误(无法分辨是什么)(对有效代码进行有效的重新排序可以使其在iPhone6上正常工作。我将以Apple的回应进行更新。

编辑:继续传奇:此代码在iPhone6上导致崩溃(在viewDidLoad中):

switch (ind) {  
0: str = "a"; break;
1: str = "b"; break;  
otherwise: str = "c";  
}  

此代码有效:

if (ind == 0) str = "a";  
else if (ind == 1) str = "b";  
else str = "c";  

有任何想法吗? switch除了if / else以外还做其他什么(例如对库异常捕获程序的隐藏设置调用)吗?

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM