[英]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. 在我的设备(在XCode 5和XCode6上)以及iOS7和iOS8上运行时均遇到问题。 I received the following error:
我收到以下错误:
*argv char * "/var/mobile/Containers/Bundle/Application/9943DB7F-C186-49D6-913A-ED95EDC8CBA0/idcdoor.app/idcdoor" =\]{
't80x00183bdc “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
. 尝试右键单击
.storyboard
然后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. 我不知道为什么它将Arial作为自定义字体导入,更不用说35次了。 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.
我的问题可能很独特,但是打开您的故事板作为文本并寻找任何看起来很奇怪的想法并不是一个糟糕的主意。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.