首页 > 代码库 > 如果不小心修改了系统SDK文件,编译无法通过改怎么办?(iOS开发)
如果不小心修改了系统SDK文件,编译无法通过改怎么办?(iOS开发)
工程报如下错误:
fatal error: file ‘/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/
Developer/SDKs/iPhoneSimulator8.0.sdk/usr/include/sysexits.h‘ has been modified since the
precompiled header ‘/Users/Lycros/Library/Developer/Xcode/DerivedData/ModuleCache/NZL05J5PKZ6B/
***.pch.pch‘ was built
解决方式如下:
Quit Xcode and remove everything in the module cache located here:
~/Library/Developer/Xcode/DerivedData/ModuleCache (删除该文件中的缓存即可)
The cache that was built with a previous version of Xcode is invalid for this version of Xcode and SDK, and that is causing your error
如果不小心修改了系统SDK文件,编译无法通过改怎么办?(iOS开发)
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。