Is anyone doing iPhone SDK 2.x.x dev on Snow Leopard?

六眼飞鱼酱① 提交于 2019-12-30 06:50:11

问题


There seems not to be an SDK 2.x.x for Snow Leopard. Or am I mistaken?

BTW, I'm loving the built-in Clang!! Kudos to the Xcode team!


回答1:


You can write applications targeting iPhone OS 2.x for Snow Leopard. Just make sure you are not using any iPhone OS 3.0 specific API:s.

You can also write applications that target both 2.x and uses 3.0 features if available. Two things to keep in mind if you do:

  • Link any iPhone OS 3.0 frameworks weakly.
  • Be sure to check the [UIDevice currentDevice].systemVersion before calling something 3.0-ish.

Could be a third bullet; Ask yourself if user who did not even care to upgrade to iPhone OS 3.0, is likely to care for installing apps?




回答2:


From Apple:

Set your Base SDK to iPhone 3.0 Device. Set your iPhone Deployment Target to 2.2.1. Use AvailibilityMacros when you call iPhone 3.0 APIs.

There isn't an iPhone Simulator for 2.x in Snow Leopard. Set your Active SDK to iPhone 3.0 Simulator to test in the simulator; set it to 3.0 Device and set your Active Executable to 2.2.1 to test the app on a 2.2.1 device.




回答3:


I asked about this at WWDC and was told that the 2.2 SDK doesn't work with XCode 3.2. I tried just copying it over, and it didn't work. That said, I'm not sure how many iPhone customers are still running 2.2...




回答4:


This is a big problem because we can't test apps for OS 2.x without a device that have OS 2.x! http://www.fdambrosio.net/archives/1395




回答5:


There's a problem with supporting iPhone OS 2.x and iPhone OS 3.x related to device or interface rotation animation:

Read my blog post here: http://blog.jessearmand.com/post/358250047/regarding-iphone-os-compatibility-and-support-of-older



来源:https://stackoverflow.com/questions/1350172/is-anyone-doing-iphone-sdk-2-x-x-dev-on-snow-leopard

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