本文介绍了如何解决“未找到 PCH 文件"代码中出现错误?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚克隆了一个 github 代码.当我尝试运行它时,它没有给我提供可用的桥接标头,我通过更改构建设置"中的文件夹名称解决了这个问题.之后,当我尝试构建时,我遇到了这个问题

I just cloned a github code.When i tried to run it , it gave me no bridging header available isse, which i resolved by changing the folder name in "Build settings" .After that when i tried to build i am getting this issue as

"<unknown>:0: error: PCH file '/Users/iosdeveloper/Library/Developer/Xcode/DerivedData/Project-ebqolwjodqhfifemlvpiqcmkwmtt/Build/Intermediates.noindex/PrecompiledHeaders/Project_1CZ4Z98EHTKKG-clang_1PO86BEGEY3JE.pch' not found: module file not found
<unknown>:0: error: clang importer creation failed
"

请帮我解决这个问题.

推荐答案

就我而言,我没有在 Build Settings 中 App-Bridging-Header 的末尾包含 .h 扩展名.在给定 App-Bridging-Header.h 之后,错误消失了.希望它会帮助某人.

In my case I've not included .h extension at the end of App-Bridging-Header in Build Settings. After given App-Bridging-Header.h the error gone. Hope it will help to some one.

这篇关于如何解决“未找到 PCH 文件"代码中出现错误?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-04 11:47