caknia
caknia

Reputation: 1251

iOS 5 - Apple LLVM compiler 3.0 error

I dont know what happen here when I tried to compile with Xcode, the compiler show this statement, "Apple LLVM compiler 3.0 error". It says fatal error that:
file '/Users/integraasp/Dropbox/code/FlipView/Classes/ColorHelper.h' has been modified since the precompiled header was built. It can build and run well on device but I can't test my code on simulator.

Before I got this error, I tried to copy the newest version of my code from dropbox. I don't know what to do since I've changed many line of code.... :'(

I've tried solution from these link, but unfortunately it's not work at all. Is there anyone can help me..? :(

Convert to ARC - LLVM compiler 3.0 Error

LLVM 3.0 compiler error: cast of C pointer type to Objective-C pointer type 'id' requires a bridged cast

**

Finally, I've found the error. :)

**

Well, finally I've found the error. prefix.pch file for this project declare was not correctly write all of header files of this project. I just write down manually on prefix.pch all header files from my project and it's done. :)

Upvotes: 3

Views: 7221

Answers (2)

borisgolovnev
borisgolovnev

Reputation: 1800

Cleaning build folder i.e. Option+Command+Shift+K, not just Product>Clean for the project usually solves this problem.

Upvotes: 15

Gajendrasinh Chauhan
Gajendrasinh Chauhan

Reputation: 3397

try following step.

Set the project compiler to "LLVM GCC 4.2", instead of "Apple LLVM 3.0"; ARC is only supported when you use Apple LLVM. To set the project compiler, in your Project, under "Build Settings", and then under "Build Options", there is a settings for "Compiler for Objective-C". Change that value to "LLVM GCC 4.2

Upvotes: 1

Related Questions