iOS 4.3 SDK - Debugging on a 3G Device

元气小坏坏 提交于 2020-01-04 05:17:46

问题


Information on the subject of iOS 4.3 device support is pretty thin on the ground at the moment. However, the lack of a 4.3 beta for iPhone 3G devices (and older iPod touch devices) leads many to believe this could be the end of OS upgrades for older devices.

Even if this assumption is incorrect right now, one day it won't be. There are hardware limits that will eventually stop Apple from supporting the oldest of devices with new iOS updates.

Given that iPhone application development debugging has the requirement of both iOS SDK and iOS version being the same, how would one continue development using iOS 4.3.x SDK releases while doing device performance testing on an iPhone 3G (or older device)? Are there ways of debugging over different iOS/SDK versions? Or do we have to simply drop development support for the older devices and tell those customers who don't upgrade their hardware: "tough"?


回答1:


You should have no problem running code written using the 4.3 SDK on an older phone. I'm currently doing testing using the latest beta SDK, but running the code on a iPhone 3G running 3.1.3. As long as you are careful to check for the existence of newer methods/classes, your app will continue to run on old OSs. I'm not sure where you heard that OS and SDK versions need to match to debug; that is not true.

If you're willing to forgo the latest features, you should be able to support the original iPhone as long as you like.




回答2:


You have to set a deployment target with an earlier build number - you can still target 3.0. You just have to be careful about what frameworks and calls you use and check for compatibility.

Since the newer SDK's do not have simulators that support earlier IOS versions, it's important to keep around devices with older builds.




回答3:


For using iPhone 3G as debugging device in Xcode 4.3 just go to Build Setting and edit the Architectures to armv6 and armv7 both. armv6 architecture is used for older devices. Select the Deployment target 3.0. This will work.



来源:https://stackoverflow.com/questions/4923303/ios-4-3-sdk-debugging-on-a-3g-device

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!