2

我试图在 Xcode(最新软件)上的 iPhone 4G iOS 5.0(最新软件)上测试我的应用程序,但是当我打开“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?

4

6 回答 6

6

您只能使用 XCode 4.2 为 iOS 5 构建。

于 2011-10-15T23:32:17.207 回答
2

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

于 2011-10-15T23:32:36.013 回答
2

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

于 2011-10-16T08:34:42.810 回答
2

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

于 2011-10-15T23:35:05.197 回答
1
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
于 2012-03-20T19:39:22.040 回答
0

App Store下载 xcode 4.2并将其安装到其他地方,例如/Developer-4.2. 然后要在 iOS 5.0 IN xcode 4.1 上使用设备进行测试,请在终端中执行以下操作:

[ 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 安装中,并且该设备将显示在管理器中,您可以在仍然使用 xcode 4.1 的同时在 iOS 5 设备上测试您的应用程序!

于 2011-10-15T23:44:18.190 回答