如何将 Xcode 从 4.2.1 升级到 4.3.2?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/10176785/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-14 23:59:19  来源:igfitidea点击:

How do i upgrade Xcode from 4.2.1 to 4.3.2?

iphoneiosxcode

提问by Surge

Is there a way? I just need to run my app on my iPod which is 5.1 and my current version won't let me...?

有办法吗?我只需要在我的 iPod 上运行我的应用程序,它是 5.1 而我当前的版本不会让我......?

回答by Pavan

This is very simple. I came across the same problem over the weekend when I upgraded my iPad and iPhone to the latest iOS 5.1. The version of Xcode I had installed at that time was not able to run applications for my devices after the upgrade.

这很简单。我在周末将 iPad 和 iPhone 升级到最新的 iOS 5.1 时遇到了同样的问题。我当时安装的 Xcode 版本升级后无法为我的设备运行应用程序。

After doing a few things I was able to successfully run applications on my upgraded devices. Below I present a few simple steps for you to follow:

做了几件事后,我能够在升级后的设备上成功运行应用程序。下面我将介绍几个简单的步骤供您遵循:

1) Download the latest version of Xcode which currently is 4.3.2 which includes SDKs for Mac OS X 10.7 Lion and iOS 5.1 suitable do install your application onto your iOS device

1) 下载最新版本的 Xcode,目前为 4.3.2,其中包括适用于 Mac OS X 10.7 Lion 和 iOS 5.1 的 SDK 将您的应用程序安装到您的 iOS 设备上

http://itunes.apple.com/us/app/xcode/id497799835?ls=1&mt=12

http://itunes.apple.com/us/app/xcode/id497799835?ls=1&mt=12

2) During installation the installation window will ask you whether you would like to remove the previous version. Remove the previous version of Xcode and let it install the new version.

2) 在安装过程中,安装窗口会询问您是否要删除以前的版本。删除以前版本的 Xcode,让它安装新版本。

3) Once you have the latest version of Xcode installed you can run the Xcode application and open up your recent project.

3) 一旦你安装了最新版本的 Xcode,你就可以运行 Xcode 应用程序并打开你最近的项目。

4) Once you have your project opened, you may need to and certainly in my case I had to, code sign and point your project to the right development profile settings in the build settings.

4) 一旦你打开了你的项目,你可能需要,当然在我的情况下我必须,代码签名并将你的项目指向构建设置中正确的开发配置文件设置。

5) Once all code signing is correct, on the top left you can select what you want to build to, make sure you have your iOS device connected and the button where it says iPhone simulator 5.1 to yourname's iphone

5)一旦所有的代码签名都正确,在左上角你可以选择你想要构建的内容,确保你已经连接了你的iOS设备和你名字的iphone上显示iPhone模拟器5.1的按钮

6) and then Xcode will build successfully onto your device

6)然后Xcode将成功构建到您的设备上