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条回答
小情绪 Triste *
2楼-- · 2020-05-19 04:46

The same thing was occuring to me. The warning was telling me:

After modifying system headers, please delete the module cache at '/Users/yunus.mehel/Library/Developer/Xcode/DerivedData/ModuleCache/13XL2DHZVON89'

So, I have restarted xcode, deleted derived data from Organizer, deleted derived data from the derivedData folder; none of them worked. Then I have realized, the solution was already there; go to:

"DerivedData/ModuleCache/13XL6DH2BON89"

and delete that folder, not the "DerivedData/<your_project>". Make a clean build, it will work again.

查看更多
Ridiculous、
3楼-- · 2020-05-19 04:47

I solved this by:

Quit restart Xcode + clean project + clean build folders + clean derived data + deleted the /var/folders/.../.../C/com.apple.DeveloperTools/5.0.2-5A3005/Xcode/SharedPrecompiledHeaders + unplugged my iPhone

Rebuild and works :)

查看更多
登录 后发表回答