在Xcode 4.2中没有找到框架头,但是应用程序运行良好

时间:2021-10-30 23:06:30

I have a Mac app that uses a framework.

我有一个使用框架的Mac应用。

In build phases, I've added the framework to Link Binary With Libraries and created a Copy Files build phase to copy the framework. Furthermore, I'ved added the framework search paths to Framework Search Paths, Header Search Paths, and User Header Search Paths. The path is as follows:

在构建阶段,我添加了框架来链接二进制文件和库,并创建了一个复制文件构建阶段来复制框架。此外,我还添加了框架搜索路径到框架搜索路径、头搜索路径和用户头搜索路径。路径如下:

../UMEKit/DerivedData/UMEKit/Build/Products/Release

. . / UMEKit / DerivedData / UMEKit /构建/产品/版本

I can build and run the application however next to the header import statement #import "UMEKit/UMEKit.h", there is a red maker indicating that the header is not found.

我可以在头导入语句#import“UMEKit/UMEKit”旁边构建并运行应用程序。有一个红色的标记,表示没有找到页眉。

I've also tried restarting Xcode and my computer a billion times and haven't been able to resolve the problem.

我也尝试过重新启动Xcode和我的电脑,但是我还没能解决这个问题。

Any suggestions on what I might be doing wrong?

对我可能做错的事有什么建议吗?

1 个解决方案

#1


7  

Do not use quotes when importing something from a framework. Use <> instead. For example

在从框架导入东西时不要使用引号。使用< >。例如

#import <UMEKit/UMEKit.h>

This will work.

这将工作。

#1


7  

Do not use quotes when importing something from a framework. Use <> instead. For example

在从框架导入东西时不要使用引号。使用< >。例如

#import <UMEKit/UMEKit.h>

This will work.

这将工作。