2

在我更新XcodeXcode 8.

我发现如果我在文件中导入供应商框架头.pch文件。会有错误。'xxx' .h file not Found

如:
我要导入一个名为Umeng的框架的头文件。所以我把下面的代码写到我的XXX-prefix.pch

#import <UMMobClick/MobClick.h>

但是错误UMMobClick/MobClick.h file not found出现了。

任何禁止在文件中导入供应商框架头文件的 Xcode 限制.pch

4

3 回答 3

0

I had a similar problem with a legacy Xcode project that used a .pch file -- the file was being ignored.

The fix was in build settings, where the original path to this file assumed it began at the project root:

SharkAlert/SharkAlert-Prefix.pch

Xcode 8 apparently requires an explicit reference to the starting point

$(SRCROOT)/SharkAlert/SharkAlert-Prefix.pch

Now the project builds as expected.

于 2017-02-17T19:01:22.023 回答
0

如果这个文件你是用来桥接OC和Swift的,现在你应该创建一个新的.header文件并在文件中移动所有头文件名

于 2017-04-28T07:23:35.307 回答
0

我有一个类似的问题。更改#import <Framework/Framework.h>@import Framework;为我修复它。

于 2017-10-10T19:04:31.347 回答