简体   繁体   English

尝试使用iPhone从Xcode调试我的应用程序

[英]Trying to use my iPhone to debug my apps from Xcode

When I try to add my iPhone by 当我尝试通过以下方式添加我的iPhone时

  1. List item 项目清单
  2. plugging it in 插入
  3. open the organizer window from Xcode 从Xcode打开管理器窗口
  4. click the + button (add to member center). 单击+按钮(添加到会员中心)。
  5. I now get the following error saying my iPhone sdk does not match the Xcode's 我现在收到以下错误消息,说我的iPhone SDK与Xcode的不匹配

installation of the iOS SDK. 安装iOS SDK。 Please restore the device to a version of the OS listed below, or update to the latest version of the iOS SDK; 请将该设备还原到下面列出的操作系统版本,或更新到最新版本的iOS SDK; which is available here. 在这里可用。

Iphone model 4 iPhone型号4

OS Installed on Ted's iPhone 7.1.1 (11D201) iPhone 4 Xcode Supported iOS Versions (nothing listed) 操作系统安装在Ted的iPhone 7.1.1(11D201)iPhone 4 Xcode支持的iOS版本上(未列出)

When I go to the download button for Xcode I do not see anything for upgrade and the Xcode is the same version I have 5.1.1 当我转到Xcode的下载按钮时,我看不到任何要升级的内容,并且Xcode与我拥有的5.1.1版本相同

I did notice that on the right it says the Xcode is using 7.1 while my iPhone has 7.1.1 is this the reason? 我确实注意到,在右边它说Xcode正在使用7.1,而我的iPhone具有7.1.1,这是原因吗?

How can I get my iPhone sdk to be compatible with Xcode so I can start debugging my program????? 如何使我的iPhone SDK与Xcode兼容,以便可以开始调试程序?

You need to check the iOS SDK for simulator in xcode. 您需要检查iOS SDK中的xcode模拟器。 On xcode toolbar, click on the simulator list and then check list of available iOS SDK. 在xcode工具栏上,单击模拟器列表,然后检查可用的iOS SDK列表。

在此处输入图片说明

If iOS 7.1 is not present there, then you need to have updated xcode. 如果那里不存在iOS 7.1,则需要更新xcode。 Latest version of xcode is 5.1.1. xcode的最新版本是5.1.1。

UPDATED: 更新:

If u didnot find any arrow after iPhone then open Preferences . 如果您在iPhone之后没有找到任何箭头,请打开“首选项” Click on Xcode on top bar then select Preferences and then click on Download tab and then click on "Check and Install" button. 单击顶部栏上的Xcode,然后选择“首选项”,然后单击“下载”选项卡,然后单击“检查并安装”按钮。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM