简体   繁体   English

Swift4 - Xcode 9 PCH错误

[英]Swift4 - Xcode 9 PCH error

This project works well all the time until I install a framework. 这个项目一直运行良好,直到我安装一个框架。 Once the framework seems hard to handle, I uninstall it. 一旦框架似乎难以处理,我卸载它。 Then, xcode 9 read PCH error. 然后,xcode 9读取PCH错误。

I perform this project with Swift, and I know little about OC. 我用Swift执行这个项目,我对OC知之甚少。 How this error happens suddenly? 这个错误怎么突然发生?

The error cannot be cleaned~~ I do not know why and how to handle this 错误无法清除~~我不知道为什么以及如何处理这个问题

在此输入图像描述

UPDATE: 更新:

I solved this by myself. 我自己解决了这个问题。 Though simple and crude, it finally worked: 虽然简单粗暴,但它终于奏效了:

  1. Clean abandoned tissues in -> project-> Link -> other Link flags 清理 - >项目 - >链接 - >其他链接标记中的废弃纸巾
  2. Clean abandoned tissues in -> target -> Built settings -> search path ->Header search path. 清理 - >目标 - >内置设置 - >搜索路径 - >标题搜索路径中的废弃纸巾。
  3. Update -> target -> Built settings -> search path ->Framework search path, discard unavailable issue. 更新 - >目标 - >内置设置 - >搜索路径 - >框架搜索路径,丢弃不可用问题。
  4. Delete file name started with Pod, except Podfile, and re-execute pod install. 删除以Pod开头的文件名,Podfile除外,然后重新执行pod install。

I still do not know which way works, but it finally worked. 我仍然不知道哪种方式有效,但最终有效。 Feel so weird. 感觉很奇怪。

Shift + alt + command ⌘ + K Shift + alt +命令⌘+ K.

Clean the derived data, build again. 清理派生数据,再次构建。

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

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