简体   繁体   English

iOS 7迁移帮助-在模拟器中运行,但不在设备上运行-无法加载应用

[英]iOS 7 migration help - Runs in Simulator, but not on device — app does not load

Disclaimer: I'm helping out on another developer's code (he didn't have the time and the customer wants it fixed quickly) and so I'm not totally familiar with this code. 免责声明:我正在帮助其他开发人员的代码(他没有时间,客户希望快速修复它),所以我对这个代码并不完全熟悉。

So the app is built for iOS 6, is in the App Store, and runs great. 因此,该应用程序是为iOS 6构建的,位于App Store中,并且运行良好。 Until you try opening it on a device running iOS 7 GM. 除非您尝试在运行iOS 7 GM的设备上打开它。 You see the splash-screen for a moment, then it crashes completely. 您看到启动屏幕片刻,然后完全崩溃。 This is causing problems because none of our users can use the app anymore after updating. 这引起了问题,因为更新后我们的用户都无法使用该应用程序。

I just got the source code and I have been trying to figure it out. 我刚刚获得了源代码,并且一直在努力弄清楚。 It compiles fine, and even runs in the iOS 7 simulator. 它可以很好地编译,甚至可以在iOS 7模拟器中运行。 (Although, of course, the UI needs to be redesigned for iOS 7.) (尽管,当然,需要针对iOS 7重新设计UI。)

Here's where it gets weird: when I run it on my iPhone 5 (iOS 7) from Xcode, the app hangs (just like with the App Store version, of course) -- but it's just so weird, considering that in runs in the Simulator. 这就是怪异之处:当我从Xcode在iPhone 5(iOS 7)上运行它时,该应用程序挂起(当然,就像App Store版本一样),但是考虑到在模拟器。

Good news is that I have some runtime errors that might help to track down the problem. 好消息是,我遇到了一些运行时错误,可能有助于找出问题所在。 I ran a search that indicates it could be a missing connection in a xib file, but I didn't find one. 我进行了搜索,表明它可能是xib文件中缺少的连接,但没有找到。

Here is the log. 这是日志。 If it helps, I can also include the build warnings. 如果有帮助,我还可以包含构建警告。

2013-09-20 20:16:55.455 myappname[2514:60b] * Terminating app due to uncaught exception 'CALayerInvalidGeometry', reason: 'CALayer position contains NaN: [nan nan]' * First throw call stack: (0x2e3d0e8b 0x386ca6c7 0x2e3d0dcd 0x307d5feb 0x307d5eef 0x307d5e7f 0x30b53517 0x30b6373b 0x30c042f1 0x30b56533 0x307ddf43 0x307d9767 0x30b6b411 0x30b67ed5 0x30be7501 0x30be71a1 0x30c03685 0x30bcf53d 0x30c034bf 0x30b55f3d 0x30b55d19 0x30b55609 0x2ed32143 0x30b55495 0x30b62153 0x30b61bd3 0x30c43e13 0x30c8398b 0x30c83961 0x30c82abf 0x30c82663 0x30c8256f 0x5c4d7 0x30bc7425 0x30bc6e6b 0x30bc14b9 0x30b5bbe7 0x30b5aedd 0x30bc0ca1 0x3303c76d 0x3303c357 0x2e39b77f 0x2e39b71b 0x2e399ee7 0x2e304541 0x2e304323 0x30bbff43 0x30bbb1e5 0x5b485 0x38bc3ab7) libc++abi.dylib: terminating with uncaught exception of type NSException 2013-09-20 20:16:55.455 myappname [2514:60b] *由于未捕获的异常'CALayerInvalidGeometry'而终止应用程序,原因:'CALayer位置包含NaN:[nan nan]'*第一个调用堆栈:(0x2e3d0e8b 0x386ca6c7 0x2e3d0dcdd 0x307d5feb 0x307d5eef 0x307d5e7f 0x30b53517 0x30b6373b 0x30c042f1 0x30b56533 0x307ddf43 0x307d9767 0x30b6b411 0x30b67ed5 0x30be7501 0x30be71a1 0x30c03685 0x30bcf53d 0x30c034bf 0x30b55f3d 0x30b55d19 0x30b55609 0x2ed32143 0x30b55495 0x30b62153 0x30b61bd3 0x30c43e13 0x30c8398b 0x30c83961 0x30c82abf 0x30c82663 0x30c8256f 0x5c4d7 0x30bc7425 0x30bc6e6b 0x30bc14b9 0x30b5bbe7 0x30b5aedd 0x30bc0ca1 0x3303c76d 0x3303c357 0x2e39b77f 0x2e39b71b 0x2e399ee7 0x2e304541 0x2e304323 0x30bbff43 0x30bbb1e5 0x5b485 0x38bc3ab7)的libc + + abi.dylib:以NSException类型的未捕获异常终止

Thread 1: signal SIGABRT 线程1:信号SIGABRT

I really have no idea what is going on. 我真的不知道发生了什么。

Any help would be greatly appreciated :) 任何帮助将不胜感激 :)

尝试使用preferredContentSize定义视图大小。

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

相关问题 iOS App在模拟器上运行但不在设备上运行? - iOS App runs on simulator but not device? NSMutableArray-应用在模拟器中运行,但不在设备上运行 - NSMutableArray - App runs in simulator but not on device iOS 7游戏中心可在模拟器上运行,但不能在设备上运行 - iOS 7 game centre runs on simulator but not device iOS应用程序在模拟器中以后台模式工作,但在设备中不工作吗? - iOS app works in background mode in simulator but not in device? 应用程序在设备上崩溃但在模拟器 iOS 上工作 - App crash on device but works on simulator iOS iOS5-应用在模拟器上运行但在设备上崩溃 - IOS5 - App running on Simulator but crashing on device iOS应用可在模拟器上运行,但不能在真实设备上运行 - iOS app works on simulator but not on real device 界面剪切在模拟器和iOS 8中的负载上跳跃,但在iOS 7真实设备上则不 - Interface cut jumps on load in simulator and iOS 8, but not on iOS 7 real device iOS Project在模拟器,物理设备上运行,但无法为“ iOS设备”构建或归档 - iOS Project runs on simulator, physical device, but can't build or archive anymore for “iOS Device” iOS 应用程序在设备上自行运行时崩溃,在使用调试器或在模拟器中通过 Xcode 运行时不会崩溃 - iOS App Crashes when running by itself on device, does not crash when running through Xcode using debugger, or in simulator
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM