修复文件“project.pch"已被修改,因为预编译头文件在 Xcode 中构建错误 [英] Fixing file 'project.pch' has been modified since the precompiled header was built error in Xcode

查看:37
本文介绍了修复文件“project.pch"已被修改,因为预编译头文件在 Xcode 中构建错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我最近在 info.plist 部分处理我的应用程序,因为我的应用程序无法在我的测试设备上运行:

I was recently working on my application messing around in the info.plist section, and since that my application will not run on my test device:

文件project.pch"自构建预编译头以来已被修改

file 'project.pch' has been modified since the precompiled header was built

需要注意的是,该应用程序在模拟器中运行良好.

Something to note is that the app runs fine in the simulator.

现在我收到这个错误而不是另一个错误:

Now I am getting this error instead of the other one:

没有那个文件或目录 (/Users/Me/Library/Developer/Xcode/DerivedData/MyProject-abcdefghijklmnopqrstuvwxyz/Build/Products/Debug-iphoneos/MyApp./MyApp)

No such file or directory (/Users/Me/Library/Developer/Xcode/DerivedData/MyProject-abcdefghijklmnopqrstuvwxyz/Build/Products/Debug-iphoneos/MyApp./MyApp)

如何重新生成 info.plist 文件?

How to regenerate the info.plist file?

推荐答案

您可以尝试深度清洁(与产品 > 清洁不同) - Option+Command+Shift+K

You could try a deep clean (not the same as Product > Clean) - Option+Command+Shift+K

注意:这意味着清理构建文件夹(按Option + Product -> clean folder)

Note: this means the clean the build folder (by pressing Option + Product -> clean folder)

这篇关于修复文件“project.pch"已被修改,因为预编译头文件在 Xcode 中构建错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆