前缀标头中的XCode存档错误

时间:2014-11-27 09:29:40

标签: ios xcode5 archive gpuimage prefix

我在项目中使用 GPUImage 框架,并将其添加到项目目标依赖项中。这实际上构建并运行良好。当我尝试归档ipa文件的项目时出现问题。错误显示'无法构建模块'基础' - 在 GPUImage-Prefix.pch 中。

#ifdef __OBJC__
#import <Foundation/Foundation.h>
#endif

是否与导入项目的ProjectName-Prefix.pch冲突?

#ifdef __OBJC__
#import <UIKit/UIKit.h>
#import <Foundation/Foundation.h>
#endif

我很想知道如何用理想的做法解决这个问题。我根据GPUImage guideline在项目设置中对Core Video框架进行了弱连接,但完全没用。提前谢谢。

2 个答案:

答案 0 :(得分:0)

我认为你可以删除/ Users / USERNAME / Library / Developer / Xcode / DerivedData / ModuleCache然后清理项目

答案 1 :(得分:0)

我做了下一步:pod deintegrate然后删除了找到cocoapods和破坏模块的任何内容。我也重新命名了目标并删除了未使用的方案。清理项目和构建文件夹。 在此之后我做了pod install。打开新的.xcworkspace(新的因为更改了目标名称)。那对我有用。