简体   繁体   English

在iOs 4.3中出现iOs 6问题的Xcode 4.5

[英]Xcode 4.5 with iOs 6 issue in iOs 4.3

I was developing iPhone/iPad apps using XCode 4.2. 我正在使用XCode 4.2开发iPhone / iPad应用程序。 With the recent update, I upgraded my XCode to 4.5 with iOs6. 随着最近的更新,我使用iOs6将我的XCode升级到4.5。 And I developed an iPhone app with this. 我开发了一个iPhone应用程序。 But the issue when I run the app in iPhone 3GS with iOs 4.3, it crashes some times. 但是当我使用iOs 4.3在iPhone 3GS中运行该应用程序时,它会崩溃一些问题。 I couldn't find any specific or common reason for this crashes. 我找不到这种崩溃的任何具体或常见原因。 It happens randomly, not when doing a specific action. 它是随机发生的,而不是在执行特定操作时。 But it happens very rarely in iPhone with iOs 5 and iOs 6. I tried to track the issue using Instruments, but still I couldn't find any reason. 但在iOs 5和iOs 6的iPhone中很少发生这种情况。我试图使用Instruments跟踪问题,但我仍然找不到任何理由。 Some memory leaks are there, but it wasn't the issue. 有些内存泄​​漏,但不是问题。

So, I have some guesses, may be it is happening due to the device is 3GS? 所以,我有一些猜测,可能是由于该设备是3GS正在发生? Or because, some codes that come with iOs 6 not supporting in iPhone 3GS or iOs 4.3. 或者因为,iOs 6附带的一些代码不支持iPhone 3GS或iOs 4.3。 In the Xcode it is not showing any warning. 在Xcode中它没有显示任何警告。

So, I am not sure, is there any possibilities for my guess?? 所以,我不确定,我的猜测是否有任何可能性?

Also, I would like to know, now we have iOs 6, so when we develop new app, should we still support iOs < 5? 此外,我想知道,现在我们有iOs 6,所以当我们开发新的应用程序时,我们是否还应该支持<5? Or can we specify it needs iOs 5 or above as requirement? 或者我们可以指定它需要iOs 5或以上作为要求吗?

Please give me some suggestions. 请给我一些建议。

Regarding your first question - "App crashing randomly". 关于你的第一个问题 - “应用程序随机崩溃”。 You have mentioned that your app crashes on all the iOS versions - rarely on 5 & 6 but frequently on 4.3. 您已经提到您的应用程序在所有iOS版本上崩溃 - 很少在5和6上,但经常在4.3上。 If this is the case, then as per my experience, this issue is mainly related to "Low Memory". 如果是这种情况,那么根据我的经验,这个问题主要与“低记忆”有关。 To verify this, debug your app on device and check your Debugger giving you "Low Memory Warning". 要验证这一点,请在设备上调试您的应用并检查调试器是否为您提供“低内存警告”。 This is the way you will find your issue. 这是您找到问题的方式。

Now regarding your second question - "which iOS to support". 现在关于你的第二个问题 - “支持哪个iOS”。 Answer to this would be iOS 5.0 and above - YES . 对此的回答是iOS 5.0及更高版本 - 是的 Not all the iPhone/ iPad users have updated their devices to iOS 6. Also some of the users can't because of device issues. 并非所有iPhone / iPad用户都将其设备更新到iOS 6.此外,由于设备问题,一些用户无法使用。 So you must provide support for iOS 5.0 at least. 因此,您必须至少为iOS 5.0提供支持。 As per the latest stats iOS device users are hardly using iOS 4.x but iOS 5.x users are plenty enough. 根据最新统计数据,iOS设备用户很难使用iOS 4.x,但iOS 5.x用户已经足够了。 A lot of apps in App Store don't provide support for below iOS 5.0. App Store中的许多应用程序都不支持iOS 5.0以下版本。 So go for iOS 5.0 and above. 所以去iOS 5.0及以上版本。 Rest it depends on your requirements like if the app is pretty simple enough then providing support for below iOS 5.0 is not a headache. 休息取决于你的要求,如果应用程序非常简单,那么提供iOS 5.0以下的支持并不是一个令人头疼的问题。

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

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