Can't get rid of Apple LLVM 5.0 Error

2020-05-19 03:48发布

It keeps saying:

fatal error: file '/Applications/Xcode5-DP5.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk/usr/include/objc/NSObject.h'

has been modified since the precompiled header

'/Users/jackiexu/Library/Developer/Xcode/DerivedData/ModuleCache/2MWVPCGUMQ29P/ObjectiveC.pcm' was built

note: after modifying system headers, please delete the module cache at '/Users/jackiexu/Library/Developer/Xcode/DerivedData/ModuleCache/2MWVPCGUMQ29P'

1 error generated.

I must have deleted the derived data at least five times by now, and I'm getting nowhere. Any ideas?

标签: ios xcode xcode5
14条回答
干净又极端
2楼-- · 2020-05-19 04:21

Delete the folder, clean the app, restart Xcode if necessary.

查看更多
Viruses.
3楼-- · 2020-05-19 04:22

Run this script to delete all relevant files in /Library/Developer/Xcode/DerivedData and /var/folders:

# run with
# ruby reallyCleanXcode.rb
derivedDataFolder = Dir.glob(Dir.home + "/Library/Developer/Xcode/DerivedData/*")
moduleCache = Dir.glob("/var/folders/**/com.apple.DeveloperTools*")
FileUtils.rm_rf derivedDataFolder + moduleCache
查看更多
smile是对你的礼貌
4楼-- · 2020-05-19 04:28

This happen when compiling, when running the app or neither?

Have you tried this:

Build Settings - Build Locations - Precompiled Header Cache Path -- there's a folder... delete it.

查看更多
\"骚年 ilove
5楼-- · 2020-05-19 04:30

Open a terminal and type in : rm -rf ~/Library/Developer/Xcode/DerivedData/ModuleCache/*

Clean your project and build again. Worked for me.

查看更多
闹够了就滚
6楼-- · 2020-05-19 04:30

I used Shift + CMD + K to try and clean the project, but it did not disappear.

All I had to do was go and check the names of <yourProjectName>-info.plist and <yourProjectName>-Prefix.pch.

Then Shift + CMD + K worked.

In my case the problem was Clang exiting with code 1.

查看更多
成全新的幸福
7楼-- · 2020-05-19 04:33

Please follow below steps to get rid from your problem.

"Library/Developer/Xcode/DerivedData/ModuleCache/"

Delete all Folders inside ModuleCache Folder.

Make a clean build, quit Xcode and run it again

sure ,it will work fine.

Good Luck !!!

查看更多
登录 后发表回答