简体   繁体   中英

Runs on Simulator but not on Device

Been having issues running on my device (both on XCode 5 and XCode6) and both iOS7 and iOS8. I received the following error:

 *argv  char *  "/var/mobile/Containers/Bundle/Application/9943DB7F-C186-49D6-913A-ED95EDC8CBA0/idcdoor.app/idcdoor"    =\]{

't80x00183bdc

The interesting thing is when I "step-over" or click the play button, it forwards on into the Application on the device with no issues. Also, if I stop the Application, and re-open, it runs fine. Any help or insight on what I can try would be appreciated.

EDIT Here is the stack:

 Queue: com.apple.main-thread(serial)
 0_cxa_throw
 UIApplicationMain
 Main

Here is where is where the exception is thrown:

 int main(int argc, char * argv[])
 {
@autoreleasepool {
    return UIApplicationMain(argc, argv, nil, NSStringFromClass([idcAppDelegate class]));
}
}

I'm having the same issue. It seems to be that my storyboard got messed up somehow. Try right clicking on your .storyboard and open as -> Source Code . I had a few lines near the top that looked like this:

<customFonts key="customFonts">     
    <mutableArray key="arial.ttf">      
        <string>ArialMT</string>        
        <string>ArialMT</string>        
        <string>ArialMT</string>        
        <string>ArialMT</string>        
        <string>ArialMT</string>        
        ...     
    </mutableArray>     
</customFonts>

I don't know why it is importing Arial as a custom font, let alone 35 times. I deleted that entire block and now it's not throwing the error. My problem could be unique, but it's not a terrible idea to open up your storyboard as text and looking for anything that seems odd.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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