简体   繁体   English

前缀标头中的XCode Archive错误

[英]XCode Archive error in prefix header

I'm using GPUImage framework in my project and this is added to the projects target dependencies. 我在项目中使用GPUImage框架,并将其添加到项目目标依赖项中。 This actually builds and runs fine. 这实际上可以构建并运行良好。 Problem occurred when i tried to archive the project for ipa file. 当我尝试为ipa文件归档项目时出现问题。 the error shows 'could not build module 'Foundation' -inside the GPUImage-Prefix.pch . 错误显示“无法在GPUImage-Prefix.pch内部构建模块“基础”。

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

Is it conflicting with import of the project's ProjectName-Prefix.pch ? 它与项目的ProjectName-Prefix.pch的导入冲突吗?

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

I am keen to know how to solve this with ideal practice. 我很想知道如何用理想的方法解决这个问题。 I did weak-link the Core Video framework in my project settings as per the GPUImage guideline , but no use at all. 我确实按照GPUImage指南在项目设置中弱链接了Core Video框架,但根本没有用。 Thanks in advance. 提前致谢。

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

I did next: pod deintegrate then removed anything that found for cocoapods and for broken module. 接下来,我进行了操作: pod deintegrate然后删除了发现的pod deintegrate和破碎模块的所有东西。 Also i did renamed a target and removed unused schemes. 我也确实重命名了目标并删除了未使用的方案。 Cleaned project and build folder. 清理项目并生成文件夹。 After this i did pod install . 之后,我pod installpod install Opened the new .xcworkspace (new because changed name of the target). 打开新的.xcworkspace(之所以新,是因为目标名称已更改)。 Thats worked for me. 那对我有用。

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

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