Closed yannliang closed 11 years ago
Thank you for the report. Unfortunately, I'm not sure what you mean. I'm able to compile the project with Xcode 4.6.2.
Can you provide the exception you're getting? Are you trying to compile MMMarkdown itself? Or are you trying to compile your own code with one of the static libraries?
Thanks for the quick reply and here are the details. I add MMMarkdown as a sub-project, and libMMMarkdown-iOS.a is the lib that I used in my project. I just put it into the linked libraries in the project as necessary and it works fine until I updated the XCode to 4.6.2. As I run it in the simulator, error came out.
error: PCH file built from a different branch ((clang-425.0.27)) than the compiler ((clang-425.0.28))
The exception message is called out while compiling MMMarkdown.m, MMParser.m, MMDocument.m, MMElement.m.
Xcode is complaining because the precompiled header file (PCH) was compiled with an older compiler. It's not caused by MMMarkdown—it's because you compiled the project and then upgraded Xcode, which upgraded the clang compiler.
If you perform a clean build (Cmd-K), then you should be able to build again without error.
As XCode 4.6.2 released, MMMarkdown throw exception during the compilation. Please have a check for the compatibility.