When using the iPhone SDK for the first time, if you do not know the relationship between the version and the operating system, it will waste a lot of time to download and install the SDK.
The following summarizes some common methods and references that can be used as soon as possible.
SDK Installation
Remember to select the version that matches your Mac OS system. The download package is large and it takes a long time to download it in China. If the selection is incorrect, the installation will fail, for example, the latest ios sdk 4.2 requires the Mac OS version 10.6.4.
Mac OS upgrade policy
Product updates with minor version numbers can be upgraded free of charge. For example, products of the. * series can be upgraded free of charge. You can automatically download and update the updates directly on the main menu and software upgrade of the system.
However, a major version requires a fee upgrade. For example, you cannot directly upgrade the version from version 10.5 to version 10.6. You need to pay for the upgrade.
A way to manually modify system version number http://jimychen.javaeye.com/blog/798487
In some cases
Root User
VI/system/library/coreservices/systemversion. plist
Modify productuservisibleversion in this file
SDK
The official address of the http://developer.apple.com only lists the latest sdks
Old SDK
Http://sheng.javaeye.com/blog/764174
List 2.x ~ Download list of 3.x versions
Http://dev.enekoalonso.com/2010/08/03/iphone-sdk-old-versions/
This address lists some previous versions, as shown below:
IPhone SDK 3.1 with xcode 3.2.1 for snow leopard (10.6.0) versions)
IPhone SDK 3.1.3 with xcode 3.2.1 for snow leopard (10.6.0)
IPhone SDK 3.2 final with xcode 3.2.2 for snow leopard (10.6.0) versions)
Xcode 3.2.3 and iPhone SDK 4 GM seed for snow leopard (10.6.2) Release)
Http://developer.apple.com/iphone/download.action? Path =/iPhone/iphone_sdk_4_gm_seed/xcode_3.2.3_and_iphone_sdk_4_gm_seed.dmg
Xcode 3.2.3 and iOS SDK 4.0.1 for snow leopard plugin
Http://developer.apple.com/iphone/download.action? Path = % 2 FIOS % 2fios_sdk_4.0.1 _ final % 2fxcode_3.2.3_and_ios_sdk_4.0.1.dmg
Xcode 3.2.3 and iOS SDK 4.0.2 for snow leopard
Http://developer.apple.com/iphone/download.action? Path = % 2 FIOS % 2fios_sdk_4.0.2 _ final % 2fxcode_3.2.3_and_ios_sdk_4.0.2.dmg
Latest SDK version
Xcode 3.2.4 and iOS sdks 4.1
Http://adcdownload.apple.com/ios/ios_sdk_4.1__final/xcode_3.2.4_and_ios_sdk_4.1.dmg
Mac OS X 10.6.2 (snow leopard) or later
Xcode 3.2.5 and iOS sdks 4.2
Https://developer.apple.com/ios/download.action? Path =/IOS/ios_sdk_4.2 _ final/xcode_3.2.5_and_ios_sdk_4.2_final.dmg
Mac OS X Snow Leopard version 10.6.4 or later.
If you do not release the software to the appstore or development stage, and do not use the latest new features of the SDK, you do not need the latest SDK temporarily. Otherwise, it is troublesome to quickly upgrade the SDK.
SDK version Selection
Http://stackoverflow.com/questions/4264894/which-version-of-the-ios-sdk-should-i-use
Which version of the ios sdk I shocould use
Appstore only reviews the software of the last two versions, so it is not a question of which SDK we want to choose
Instance
Http://www.appsamuck.com
31 examplesProgram
Http://appsamuck.com/blog/index.php/2009/11/24/download-the-source-code-from-all-of-our-31-days-of-iphone-sdk-apps/
Http://appsamuck.com/blog/index.php/2008/11/01/full-list-of-31-days-of-iphone-sdk-apps/
Http://stackoverflow.com/questions/1353130/where-can-i-find-sample-iphone-code
IPhone example address collection
Http://developer.apple.com/library/ios/navigation/#section=Resource%20Types&topic=Sample%20Code
Official Apple instanceCodeAddress, http://www.devdiv.net/bbs/thread-19294-1-1.html. Here are some specific explanations.
Http://sxsoul.blog.163.com/blog/static/42849160201010114330802/
Official example
Http://groupaware.mobi/iphone/index.html#_Samples
Display effects of some interface elements
View documents offline
When viewing documents in xcode, you can connect to the Apple site for viewing at a slow speed. Therefore, it is better to download the documents for more convenient viewing.
Official update super slow, refer to download this method of http://www.cocoachina.com/iphonedev/sdk/2010/1102/2281.html
Specifically:
API reference and conceptual documentation for iOS of different versions
Http://developer.apple.com/rss/com.apple.adc.documentation.AppleiPhone3_1.atom
Http://developer.apple.com/rss/com.apple.adc.documentation.AppleiPhone4_0.atom
Http://developer.apple.com/rss/com.apple.adc.documentation.AppleiPhone4_2.atom
Mac OS x 10.6 core library/Mac OS x Java Library/Mac OS X legacy Library
Http://developer.apple.com/rss/com.apple.adc.documentation.ApplesnowLeopard.atom
Analyze the above source content and select the desired document to download with thunder,
Run the following command to decompress the package to the xcode directory.
Sudo xar-XF file name. xar
Decompress it, and then use:
Sudo chown-r-p devdocs file name .doc set
Change the document owner to devdocs. Open xcode and you will be able to browse it offline.