我的 Xcode 项目是如何从 iOS 项目更改为 OSX 项目的? [英] How did my Xcode project get changed from iOS project to an OSX project?

查看:22
本文介绍了我的 Xcode 项目是如何从 iOS 项目更改为 OSX 项目的?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直只做 iOS 开发,从未开发过 OSX 应用.在我现在正在处理的 iOS 项目中,我突然发现 Xcode 认为它是一个 OSX 项目.我的所有框架文件都显示为红色(缺失),项目面板中的许多选项显示仅适用于 OSX 的选项,例如部署目标",它仅提供 10.4、10.5、10.6 等,并且在 Build 中有效架构设置显示 i386 x86_64,没有下拉选项.

I've been doing only iOS development and never made an OSX app. In the iOS project I'm working on now I see that suddenly Xcode thinks it's an OSX project. The all my framework files are shown in red (missing), and lots of the options in the project panel show choices that are only appropriate for OSX such as "deployment target", which offers only 10.4, 10.5, 10.6 etc. and in Build Settings the Valid Architecture shows i386 x86_64 with no drop-down options.

发生了什么?如何将其改回 iOS 项目?

What happened? How can I change this back to an iOS project?

推荐答案

回答这个问题可能会晚 2 点,但是,这个答案可能对未来的人有所帮助,因为上面的答案对我没有帮助,所以在这里是我所做的.

could be 2 late to answer this question, however, this answer might help someone in the future, as the above answer wasn't helpful for me, so here is what I have done.

1- 在 Xcode 的左上角点击方案.

1- on the left top corner of Xcode click on the scheme.

2-点击编辑方案

3- 在新窗口中将Executable"从 non 更改为您的项目方案的名称target"

3- in the new window change "Executable" from non to the name of your project scheme "target"

4- 在顶部显示我的 Mac 64 位"如果它没有自动更改为 iPhone/iPad 手动更改.

4- on the top where it says "My Mac 64-bit" if it didn't changed automatically to iPhone/iPad change it manually.

5- 如果没有任何选项,请在窗口底部单击管理方案"并确保已选中项目方案旁边的复选框.

5- if there wasn't any option, in bottom of the window click "Manage Schemes" and make sure the check box next to your project scheme is checked.

希望这可以帮助并节省任何人的时间.

hope this could help and save anyone time.

这篇关于我的 Xcode 项目是如何从 iOS 项目更改为 OSX 项目的?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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