My application was working perfectly fine, then I started integrating SDK for push notification and stop the integration in between. I even deleted the SDK from my project a
you must have to add .m files in Compile Sources of Bundle Target.
I got it to work, I just made a simple change in my Project target-> Build setting-> Build Active Architecture only and set this Build Active Architecture only to YES. And it's working fine now..
update After 6 months:
Again i face this issue after updating to Xcode5. This time i have to update Project target-> Build setting->Valid Architecture to armv7. I removed armv7s and arm64.
Try removing file(s) that you've deleted from Project target -> Build Phases -> Compile Sources.
Hope that helps.
None of that worked for me.
After a bit of digging (git reset, etc.) I found that my workspace was corrupted. I deleted the content of the project.xcworkspace and all went back to normal.
Reason why even reset didn't work is because the .xcworskpace is in my .gitignore (like many I guess).
In my case, I executed my application after some updates, then tried to commit it on git, and conflicts ruined my code. That was sad story.
But luckily I had one backup on my system and I replaced ruined code with my local code.
Now while executing I felt same problem. Then cleaning the project was the magical stick for me. I cleaned the project and I was good to go.
In my case, the problem occurred because I had an object (AVAudioPlayer) instance variable declared with the same name in two controllers - the app delegate and one other controller. Strange, but the problem disappeared when I renamed one of them.