简体   繁体   English

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

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

The iPhone6 has been working fine during app development; iPhone6在应用程序开发过程中一直运行良好; it stopped working when I added the iPhone4s (which works fine with the app, as does iPad Retina). 当我添加iPhone4s时,它停止工作(该应用程序与iPad Retina都可以正常运行)。 When I delete the app from iPhone6 and download again, I get the "Trust" question on the iPhone6, but saying yes doesn't help. 当我从iPhone6删除该应用程序并再次下载时,我在iPhone6上遇到“信任”问题,但说“是”无济于事。 The iPhone6 is still recognized in iTunes on Mavericks. iPhone6在小牛的iTunes中仍然可以识别。 This happened once before, but fooling around, trying various Mac and iPhone restarts, it started working again, and I didn't know what I did. 这种情况以前发生过一次,但在尝试重新启动各种Mac和iPhone之后又鬼混了,然后又开始工作了,我不知道自己做了什么。 This time I can't clear it; 这次我无法清除; I get the splash screen and then it crashes. 我得到了启动画面,然后崩溃了。 So frustrating. 真令人沮丧

Do you know the magic to get the Mac and iPhone6 talking again? 您知道让Mac和iPhone6再次对话的魔力吗?

Thank you!!! 谢谢!!!

The iPhone crash: 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

The Xcode 6 side: 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)
    }
}

I'm submitting a compiler/linker/loader bug (can't tell which it is) to Apple (a valid re-ordering of valid code gets it to work on iPhone6. I'll update with Apple's response. 我正在向Apple提交一个编译器/链接器/加载器错误(无法分辨是什么)(对有效代码进行有效的重新排序可以使其在iPhone6上正常工作。我将以Apple的回应进行更新。

Edit: Continuing saga: This code causes a crash on iPhone6 (in viewDidLoad): 编辑:继续传奇:此代码在iPhone6上导致崩溃(在viewDidLoad中):

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

This code works: 此代码有效:

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

Any ideas? 有任何想法吗? Does switch do anything more than if/else (like a hidden setup call to a library exception catcher)? switch除了if / else以外还做其他什么(例如对库异常捕获程序的隐藏设置调用)吗?

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

相关问题 iPhone模拟器中iPhone6的屏幕分辨率错误 - Wrong screen resolution for iPhone6 in iPhone Simulator iPhone6上的电子邮件应用程序测试 - Email app test on iphone6 关于iOS开发。 当我在iPhone6上运行项目时,启动屏幕没有显示,但是在模拟器iPhone6上运行时,显示了启动屏幕 - About iOS development. The launch screen didn't show when I run my project on my iPhone6,however,its's show when run on simulator iPhone6 使用UITableView的应用程序在iPad模拟器上运行,但在iPhone模拟器上崩溃 - App with UITableView runs on iPad simulator but crashes on the iPhone simulator 为什么OpenCV构造函数在iPhone5而不是iPhone6 / iPad中起作用? - Why does OpenCV constructor work in iPhone5 and not iPhone6/iPad? 如何为iPhone6 / 6 +优化混合应用 - How to optimize hybrid app for iphone6/6+ 应用程序在iPhone上崩溃,但在模拟器或iPad上没有崩溃? - App crashes on iPhone but not simulator or iPad? 应用程序在iPhone / iPod上运行良好,但在iPad(甚至模拟器)上崩溃 - App works fine on iPhone/ iPod but crashes on iPad (even simulator) 使用宏检测iPhone6和iPhone6 Plus - Detecting iPhone6 & iPhone6 Plus using macros 在iPhone6、6 +模拟器中不显示预测性(快速类型)键盘 - Predective (Quick type) keyboard not displaying in iPhone6, 6+ simulator
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM