iOS 5.0 missing in Xcode 4.1?

元气小坏坏 提交于 2019-12-06 08:25:14

You can only build for iOS 5 with XCode 4.2.

Xcode 4.2 is on the Mac App Store. Note that there may be an installation issue that will keep you at 4.1; I'd recommend uninstalling Xcode first and then running the Install Xcode.app that MAS gives you.

poupou

You'll need Xcode 4.2 (4.1 was released for OSX Lion) and the iOS5 SDK. Both are available from http://developer.apple.com

Also notice that when you download update for Xcode 4.1 from App store it won't install itself alone, it will only download XCode installer which you need to run to update 4.1 to 4.2 and it will give you iOS5 then in frameworks.

Apple updates Xcode 4.2! Adds iOS 5 Support!
What’s New in Version 4.2

- Includes SDKs for Mac OS X 10.7 Lion and iOS 5
– Storyboards let you design multiple iOS screens, and define the segues among them
– Automatic Reference Counting (ARC) saves you from manually managing retain/release
– iCloud entitlements are automatically enabled for Mac and iOS apps
– OpenGL ES Debugger graphically analyzes your OpenGL scene directly within the IDE
– Apple LLVM compiler supports C++11 features and the LLVM libc++ standard library
– Older iOS Simulators and device debugging symbols are downloaded on-demand

Enhancements and fixes in previous Xcode updates:

– Interface Builder support for Auto Layout and new Aqua controls such as NSPopover
– Full screen support in workspace, project, and organizer windows
– Project editor can validate and resolve out of date build settings
– Behaviors can be customized and assigned to unique key bindings
– Source control enhancements to pushing, pulling, and management of remote servers
– Assistant editor support for display of generated assembly and preprocessed output
– Additional bug fixes and stability improvements

Download xcode 4.2 from the the App Store and install it to somewhere else like /Developer-4.2. Then to test with a device on iOS 5.0 IN xcode 4.1 do the following in a Terminal:

[ 16:39 root@MacBookPro / ]# cp -rv /Developer-4.2/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.0.sdk/ /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/
[ 16:40 root@MacBookPro / ]# cp -rv /Developer-4.2/Platforms/iPhoneOS.platform/DeviceSupport/5.0/ /Developer/Platforms/iPhoneOS.platform/DeviceSupport/

This will copy all the necessary files over to your xcode 4.1 install, and the device will show up in the organizer and you can test your App on an iOS 5 device while still using xcode 4.1!

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