简体   繁体   English

我的Xcode项目找不到标准文件

[英]My Xcode project can't find standard files

I have two targets -- an iOS target and a macOS target. 我有两个目标-iOS目标和macOS目标。 On the iOS target, it first fails to find the file called for by the line 在iOS目标上,它首先无法找到该行所需要的文件

#include "i386/types.h"

in the file types.h. 在文件types.h中。 On the macOS target, it fails to find almost all of the headers imported by AppKit.h -- starting with the line 在macOS目标上,它无法找到AppKit.h导入的几乎所有标头-从以下行开始

#import <AppKit/AppKitDefines.h>

Interestingly, it did find Foundation.h. 有趣的是,它确实找到了Foundation.h。

What went wrong, and how can I fix it? 出了什么问题,我该如何解决?

EDIT: I know the files are present on my machine, because other projects find them no problem. 编辑:我知道文件在我的机器上,因为其他项目找不到它们。

Well, i386 doen't make any sense on IOS so likely some settings have been messed up by having both types of targets... 好吧,i386在IOS上没有任何意义,因此某些设置可能由于同时具有两种目标而被弄乱了...

So start a new project, add only the targets and see if that works out? 因此,开始一个新项目,仅添加目标,看看是否可行?

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

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