简体   繁体   English

iOS项目已更改为OS X项目

[英]iOS project has changed to OS X project

The house of cards that is XCode has changed my project from iOS to OS X. XCode纸牌屋将我的项目从iOS更改为OSX。

It doesn't appear to have anything to do with the Schema because I've deleted that. 它似乎与架构无关,因为我已经删除了它。 In the build settings, the architecture settings are drawing from "OS X Default". 在构建设置中,体系结构设置是从“ OS X Default”绘制的。

How do I change it back? 如何将其改回来?

I fixed one of my projects by restarting the machine. 我通过重新启动机器来修复了我的项目之一。 One is still incorrectly configured though. 一个仍然配置不正确。

Many answers elsewhere suggest overriding the settings inherited from "OS X Default", which you can see in the following screen shot. 其他地方的许多答案都建议覆盖从“ OS X Default”继承的设置,您可以在以下屏幕截图中看到。 Ideally the base settings should be "iOS Default". 理想情况下,基本设置应为“ iOS默认”。

在此处输入图片说明

Check and set your base SDK to iOS. 检查并将基本SDK设置为iOS。 Go to Project (in upper left) -> Project (project name in submenu) -> Build Settings . 转到项目(在左上角)->项目(在子菜单中的项目名称)->构建设置 In Architectures menu select Base SDK as one of the iOS SDK. 在“体系结构”菜单中,选择“基本SDK”作为iOS SDK之一。

Also, you said you deleted your Xcode schemes. 另外,您说您删除了Xcode方案。 That may also cause this. 这也可能导致这种情况。 Try this: 尝试这个:

  1. On the left top corner of Xcode click on the scheme. 在Xcode的左上角,单击方案。
  2. Click edit scheme. 单击编辑方案。
  3. In the new window change "Executable" from non to the name of your project scheme "target". 在新窗口中,将“可执行文件”从非更改为项目方案“目标”的名称。

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

相关问题 Swift在单个项目中将现有iOS文件导入OS X目标 - Swift import existing iOS files into OS X target in single project 一个 iOS(或 OS X)项目依赖于一个框架的两个版本 - An iOS (or OS X) project depends on two versions of a framework 如何在OS X for iOS上交叉编译本机Makefile项目? - How to cross-compile a native makefile project on OS X for ios? 使用swift发布OS X和iOS项目的发布构建配置的Lipo错误 - Lipo error for release build config for OS X and iOS project with swift 当iOS和OS X应用程序在同一个项目中时,集成Fabric / Crashlytics - Integrating Fabric / Crashlytics when iOS and OS X apps are in the same project 如何从OS X项目中卸载iOS QuickBlox SDK? - How to uninstall iOS QuickBlox SDK from OS X project? Xcode 4.4将我的iOS项目变成了Mac OS X项目! 我怎样才能解决这个问题? - Xcode 4.4 turned my iOS project into a Mac OS X project! How can I fix this? 没有任何变化时,Xcode会重建项目 - Xcode rebuilds project when nothing has changed 我可以在XCode中保留一个项目,但是可以为Mac OS X,Apple Mac Store和iOS设备构建它吗? - Can I keep one project in XCode but build it for Mac OS X, Apple Mac Store and iOS device(s)? 如何在同一个项目中安装iOS App和OS X App? - How do I have an iOS App and OS X App in the same project?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM