简体   繁体   English

Xcode 以 macOS 身份打开 iOS 项目

[英]Xcode open an iOS project as macOS

I have Xcode 12.2, I'm trying to open an iOS project, but xcode opens it as a macOS project.我有 Xcode 12.2,我正在尝试打开 iOS 项目,但 xcode 将其作为 macOS 项目打开。 How to redefine the platform?如何重新定义平台?

在此处输入图像描述

You can create a new ios target and delete the ones that you don't want.您可以创建一个新的 ios 目标并删除您不想要的目标。 Click the + button at the bottom of the Targets List.单击目标列表底部的 + 按钮。

在此处输入图像描述

Then select ios, filter by "app," and select the iOS app template target.然后 select ios,按“app”过滤,然后 select Z1BDF605991920DB411CBDF8508 模板目标。

在此处输入图像描述

Once your new target is added, you can select the new target Scheme.添加新目标后,您可以 select 新目标方案。 The ios devices will be listed in that Scheme. ios 器件将在该方案中列出。

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

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