I don't know how I modified a iOS SDK file, but Xcode say I did. Here is what they reported.
fatal error: file '/Applications/Xcode 2.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIFontDescriptor.h' has been modified since the precompiled header '/Users/m/Library/Developer/Xcode/DerivedData/ModuleCache/24CDWDK5BTYJE/UIKit.pcm' was built
note: after modifying system headers, please delete the module cache at '/Users/m/Library/Developer/Xcode/DerivedData/ModuleCache/24CDWDK5BTYJE'
1 error generated.
I tried to look for this DerivedData but could not. I also went into organizer to delete it and did a clean, even after that, no luck.
How do I restore this UIFontDescriptor.h to its original form?
File→Open Quickly: Command-D Pops up a panel where you can type a file name. This is most frequently used for opening header files from the Cocoa frameworks. You can type in a name without an extension and Xcode will first try to find an implementation file and if it can't find one will look for an interface file.
The file extensions are pretty much necessary, though, because the build process and Xcode itself rely on them.) The interface section goes into MyClass. h, which is called the header file. The implementation section goes into MyClass. m, which is called the implementation file.
Remove the pcm file
rm "/Users/m/Library/Developer/Xcode/DerivedData/ModuleCache/24CDWDK5BTYJE/UIKit.pcm"
then
Clean Project( Cmd+Shift+K)
Problem solved
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With