Xcode—如何解決…has been modified since the precompiled header… was built的問題

如何解決…has been modified since the precompiled header… was built 的問題


xcode5.1在程序中報錯:

File '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.1.sdk/System/Library/Frameworks/UIKit.framework/Headers/UISegmentedControl.h' has been modified since the precompiled header '/Users/rjxyrjxy/Library/Developer/Xcode/DerivedData/ModuleCache/VMUVAS4MFQHZ/UIKit.pcm' was built


具體的解決方法:

刪除/Users/rjxyrjxy/Library/Developer/Xcode/DerivedData/ModuleCache目錄下的所有文件


但是如何找到路徑呢


這裏我來告訴大家一個簡單快捷的方法(Library是隱藏文件,不容易找的)


在Finder上點——>前往——>前往文件夾,會自動彈出讓你輸入路徑,例如:/Users/rjxyrjxy/Library/Developer/Xcode/DerivedData/ModuleCache

會自動找到文件的,刪除裏面的所有文件就OK了,不過呢,還是報錯誤的話,你還可以這樣做 Project——>Clean ,Shift + Command + K

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章