简体   繁体   English

iOS App在Simulator上运行正常,但在真实的iOS设备上崩溃

[英]iOS App works fine with Simulator but Crashes with a real iOS device

I know there are already similar problems on StackOverflow, but mine is a little different. 我知道StackOverflow上已经存在类似的问题,但是我的有所不同。 So when I launch my app on the simulator, it works just fine, however, when I launch it on a device, it loads everything and launches the app but as soon as it does that, both my Xcode and the app on my phone crash. 因此,当我在模拟器上启动我的应用程序时,它运行良好,但是,当我在设备上启动它时,它会加载所有内容并启动该应用程序,但是一旦执行,我的Xcode和手机上的应用程序都会崩溃。

I have no code to post as my Xcode crashes but if you know why this is happening or any code that may be useful to you, please let me know. Xcode崩溃时,我没有可发布的代码,但是如果您知道为什么会发生这种情况或任何对您有用的代码,请告诉我。

I think you should follow the orders to figure out what the problem is: 我认为您应该按照命令确定问题所在:

1、Make sure your device type and iOS Version is right. 1,确保您的设备类型和iOS版本正确。 Some newer apis do may cause crash on old iOS version. 某些较新的api可能会在旧的iOS版本上导致崩溃。 If your device's iOS version is not the same as the version of your simulator, maybe it's the reason. 如果您设备的iOS版本与模拟器的版本不同,则可能是原因。

2、If you're using iPhone 5 or iPhone 5c. 2,如果您使用的是iPhone 5或iPhone 5c。 That means your device does not support 64 bit calculation. 这意味着您的设备不支持64位计算。 Check it out. 看看这个。

3、Add Global Exception from exception panel. 3,从例外面板添加全局例外。 Switch to exception panel -> click plus button on the left bottom of the panel -> Choose one or more global Breakpoint you want to add. 切换到例外面板->单击面板左下方的加号按钮->选择要添加的一个或多个全局断点。 Then you should get where is wrong before it crash. 然后,您应该在崩溃之前弄错地方。

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

相关问题 iOS 应用程序在手机上崩溃,但在模拟器上运行良好 - iOS App Crashes on Phone but works fine on simulator iOS应用可在模拟器上运行,但不能在真实设备上运行 - iOS app works on simulator but not on real device Firebase 在 ios 模拟器上运行良好,但在真实设备上不起作用 - Firebase works fine on ios simulator but it does't work on real device IOS App在iTunes版本上崩溃,但在本地模拟器和真实设备测试中运行良好 - IOS App crashed on iTunes' version, but works fine on local simulator & real device testing iOS应用程序在Xcode模拟器中运行良好,但速度很慢并且在设备上崩溃 - iOS app runs fine in Xcode simulator, but is slow and crashes on a device Expo 应用程序在 Expo Go 和 iOS 模拟器上工作,但在真实设备上崩溃 - Expo app working on Expo Go and iOS Simulator but crashes on real device 应用程式在装置上当机,但在Simulator上运作正常 - App crashes on device, however works fine on Simulator 应用程序在Simulator(Xcode 7.1.1)中运行良好,但在iOS设备上运行不正常 - app works fine in Simulator (Xcode 7.1.1) but not on iOS device iOS应用程序不会在设备上编译,但在模拟器中工作正常 - iOS app won't compile on device but works fine in simulator Swift 应用程序在真实设备上崩溃,但在模拟器上运行 - Swift app crashes on real device but works on simulator
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM