Xcode 4.1中缺lessiOS 5.0?

我正试图在Xcode(最新软件)上的iPhone 4G iOS 5.0(最新软件)上testing我的应用程序,但是当我打开“Organizer”并在设备下显示此消息(下面)时。

“用户名”上的iOS版本与安装了iOS SDK的任何iOS版本都不匹配。 请将设备恢复到下面列出的操作系统版本,或者更新到最新版本的iOS SDK; 这在这里可用。

操作系统安装在Moo 5.0(9A334)

Xcode支持iOS版本最新4.3 4.2 4.1 4.0.2 4.0.1 4.0 3.2.2 3.2.1 3.2 3.1.3 3.1.2 3.1.1 3.1 3.0.1 3.0

我该如何使我的应用程序再次运行在我的iPhone上? 只是想知道为什么在Xcode中没有iOS 5.0的选项,它只有iOS 4.3?

您只能使用XCode 4.2构buildiOS 5。

Xcode 4.2在Mac App Store上 。 请注意,可能会有一个安装问题,将您保持在4.1; 我build议先卸载Xcode,然后运行MAS给你的安装Xcode.app。

您将需要Xcode 4.2 (为OSX Lion发布4.1)和iOS5 SDK。 两者均可从http://developer.apple.com获得

另外请注意,当您从App Store下载Xcode 4.1的更新时,它不会自行安装,它只会下载您需要运行的XCode安装程序,将4.1更新到4.2,然后在框架中为您提供iOS5。

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 

从App Store下载xcode 4.2并将其安装到/Developer-4.2其他地方。 然后使用iOS 5.0 IN xcode 4.1上的设备进行testing在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/ 

这将复制所有必要的文件到您的xcode 4.1安装,设备将显示在组织者,您可以在iOS 5设备上testing您的应用程序,同时仍然使用xcode 4.1!