什么是Xcode 7.1运行目的地列表中的通用iOS设备? [英] What is Generic iOS Device in Xcode 7.1 run destinations list?

查看:331
本文介绍了什么是Xcode 7.1运行目的地列表中的通用iOS设备?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Xcode中的模拟器列表中发现了一个奇怪的选项,我以前从未见过。 通用iOS设备 仅限构建设备

I found a strange option in my simulators list in Xcode I've never seen before. Generic iOS Device in Build Only Device

有趣,但当我尝试为此设备构建时 - 我得到错误:

Interesting, but when I try to build for this device - I get error:

A build only device cannot be used to run this target.
Please select an available device or choose a simulated device as the destination.

任何人都可以解释 - 出于什么目的我需要这个选项?

Can anyone explain - for what purposes do I need this option?

我有Xcode 7.1和iOS 9.1

I have Xcode 7.1 and iOS 9.1

推荐答案

该目标的目的是为iOS设备构建,即使您的手机未插入。您可以编译iOS(armv7,armv8,arm64) )体系结构并查看编译时是否有任何错误,因为这些错误可能与您为iPhone模拟器(i386体系结构)构建时不同。

The purpose of that target is to build for iOS devices, even if your phone is not plugged in. You can compile for iOS (armv7, armv8, arm64) architectures and see if there are any errors upon compilation, as these errors may be different than when you build for iPhone Simulator (i386 architecture).

这允许您构建( + B )适用于iOS体系结构,但您无法在此目标上运行可执行文件,因为没有任何内容可以运行该程序。

This allows you to build (+B) for iOS architectures, but you will not be able to run your executable on this target, as there is nothing to run the program on.

这篇关于什么是Xcode 7.1运行目的地列表中的通用iOS设备?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆