简体   繁体   English

如何使用Xcode 6模拟器在ios 7上测试我的应用程序

[英]How to test my app on ios 7 using Xcode 6 simulator

I'm trying to test my app with ios7 using Xcode 6's simulator but I can't find the option to change it. 我正在尝试使用Xcode 6的模拟器使用ios7测试我的应用程序,但我找不到更改它的选项。 Currently it only loads ios8 while my deployment target is set to 7. 目前它只在我的部署目标设置为7时加载ios8。

Also according to this message from Apple: 另外根据Apple发来的消息:

Starting February 1, 2015, new iOS apps uploaded to the App Store must include 64-bit support and be built with the iOS 8 SDK, included in Xcode 6 or later. 从2015年2月1日开始,上传到App Store的新iOS应用程序必须包含64位支持,并使用Xcode 6或更高版本中包含的iOS 8 SDK构建。 To enable 64-bit in your project, we recommend using the default Xcode build setting of “Standard architectures” to build a single binary with both 32-bit and 64-bit code. 要在项目中启用64位,我们建议使用“标准体系结构”的默认Xcode构建设置来构建包含32位和64位代码的单个二进制文件。

Does this mean that new apps cannot run on ios7 anymore? 这是否意味着新应用无法在ios7上运行?

Thank you for your help. 谢谢您的帮助。

First, Change Deployment Target to 7.You can change Deployment target from target under Deployment Info. 首先,将部署目标更改为7.您可以在部署信息下从目标更改部署目标。 Go to Xcode Preferences, Select Downloads tab and download iOS7 Simulator. 转到Xcode首选项,选择下载选项卡并下载iOS7模拟器。 Now go to Xcode, you can find iOS7 Simulator on target device list, if not than quit and restart Xcode. 现在转到Xcode,你可以在目标设备列表上找到iOS7 Simulator,如果不是退出并重新启动Xcode。 Hope it will help. 希望它会有所帮助。

The deployment target is the minimum version of iOS that your application will be expected to run on. 部署目标是您的应用程序将在其上运行的iOS的最低版本。 It effects how your app is BUILT and not where you run it. 它影响你的应用程序是如何构建的 ,而不是在那里你运行它。 You need to choose an iOS 7 device from the run destinations menu and then do a Build&Run to build, install, and run the app on the iOS 7 device. 您需要从运行目标菜单中选择iOS 7设备,然后执行构建和运行以在iOS 7设备上构建,安装和运行该应用程序。

If you don't have an iOS 7 simulator device in the run destinations menu, go download the iOS 7 runtime from Xcode -> Preferences -> Downloads 如果您在运行目标菜单中没有iOS 7模拟器设备,请从Xcode下载iOS 7运行时 - >首选项 - >下载

是的,你可以,转到xcode(7)首选项>选择组件在这里你也可以下载模拟器和文件。

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

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