Orrin
Orrin

Reputation: 1

Strange Xcode error

When I run my app, i get one error and i dont know how to fix it. Can someone help me?

Here is the error:

Command /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc-4.2 failed with exit code 1

Picture: http://imageshack.us/photo/my-images/200/screenshot20110609at256.png/

Thanks

Upvotes: 0

Views: 100

Answers (4)

obernal
obernal

Reputation: 189

From the error message, it seems like didUpdate is defined more than once in your code. Search for didUpdate on your workspace and make sure it's only being defined once.

Upvotes: 1

AJPatel
AJPatel

Reputation: 2291

gcc-4.2 failed with exit code 1 Error Occurs due to some of your file or frame work are duplicated check it out which file is in you target link file or in your framework are repeated.

from your log message "didUpdate" may be repeated in your project look for that...

May be this is helpful to You.

Upvotes: 1

amavi
amavi

Reputation: 534

Either you are redefining variable or you are probably importing a *.m file somewhere in your project.Try importing corresponding *.h file.

Upvotes: 0

Chris White
Chris White

Reputation: 1063

The causative problem is the error immediately preceding that one, the duplicate symbol error.

Upvotes: 1

Related Questions