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/20开发者_JS百科0/screenshot20110609at256.png/
Thanks
The causative problem is the error immediately preceding that one, the duplicate symbol error.
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.
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.
Either you are redefining variable or you are probably importing a *.m file somewhere in your project.Try importing corresponding *.h file.
精彩评论