简体   繁体   English

在iOS 4.3模拟器中使用xcode 4.6运行应用

[英]run app using xcode 4.6 in ios 4.3 simulator

I am actually trying to run my application in 4.3 simulator from xCode 4.6. 我实际上正在尝试从xCode 4.6在4.3模拟器中运行我的应用程序。 I copy the sdk for simulator 4.3 at the path, it builds successfully but cant run the application in simulator. 我在路径中复制了用于模拟器4.3的sdk,它成功构建,但无法在模拟器中运行该应用程序。 So now what can I do to solve the problem? 那么,现在该怎么办才能解决问题? Thank you in advance 先感谢您

If you are using Mac OS 10.7.x and have upgraded to Xcode 4.6, then you could have or download simulator 4.3 version. 如果您使用的是Mac OS 10.7.x,并且已升级到Xcode 4.6,则可以拥有或下载模拟器4.3版本。 But, if you are using Mac OS 10.8.x, then you can not have simulator 4.3 version. 但是,如果您使用的是Mac OS 10.8.x,则不能使用模拟器4.3版本。 The reason is 4.3 simulator on Mac OS 10.8.x crashed a lot, so Apple has removed that. 原因是Mac OS 10.8.x上的4.3模拟器崩溃了很多,因此Apple删除了该模拟器。

Check this link:- 检查此链接:-
http://iphonedevsdk.com/forum/iphone-sdk-development/111568-what-happened-to-the-ios-4-3-simulator-in-xcode-4-6.html http://iphonedevsdk.com/forum/iphone-sdk-development/111568-what-happened-to-the-ios-4-3-simulator-in-xcode-4-6.html

Go to Xcode -> Preferences -> Downloads and make sure the "Target SDK" you have selected in your project is in fact installed under the Downloads windows. 转到Xcode->首选项->下载,并确保您在项目中选择的“目标SDK”实际上已安装在“下载”窗口下。 For me this magically was uninstalled. 对我来说,这神奇地被卸载了。 Once i installed the SDK that my app was using, all worked again 安装了我的应用程序使用的SDK后,所有这些都可以再次使用

Also Check 同时检查

Xcode>Preferences> click Downloads tab. Xcode>首选项>单击下载选项卡。 The supported simulators are in there. 支持的模拟器在那里。

Please try this and let me inform any problem still exists. 请尝试此操作,并让我告知仍然存在任何问题。

  1. Go to Xcode -> Preferences -> Downloads -> Components 转到Xcode->首选项->下载->组件
  2. There you can see the list of simulators (v4.3 also there). 在这里,您可以看到模拟器列表(也有v4.3)。 Click on install against the simulator that you want to install. 在要安装的模拟器上单击安装。
  3. After Installation, restart Xcode 安装后,重新启动Xcode
  4. Go to the project info and set your build target to iOS Version 4.3 转到项目信息,并将构建目标设置为iOS版本4.3

Now the simulator version 4.3 will be listed in your schema selector. 现在,模拟器4.3版将在您的模式选择器中列出。

Cheers :) 干杯:)

Note: If you are using Mac 10.8, you cannot have 4.3 simulator 注意:如果使用的是Mac 10.8,则不能使用4.3模拟器

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

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