开发者

Xcode: How do I change my project folders name, without having building problems?

开发者 https://www.devze.com 2023-04-03 08:39 出处:网络
I would like to change the folder name where my Xcode project is in. But when I do that I can\'t build my project anymore. It shows me 2 errors that says:

I would like to change the folder name where my Xcode project is in. But when I do that I can't build my project anymore. It shows me 2 errors that says:

Apple LLVM compiler 3.0 error file "project name-Prefix.pch" has been modified since the precompiled header was built

Any way to开发者_Python百科 solve this?


Select Product > Clean from the Xcode menu.

Then try and build again by selecting Product > Build.

Your project should build without errors assuming that targets are correct.


Either you have replaced the code to some another machine. Try to commit the explicitly included import in the .PCH file. Compile it once on that specific machine. Now un-comment the those import lines and then compile the code again.


If you are trying to build project from terminal then

execute "$ xcodebuild clean " before execute the build command.

This will resolve the issue.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号