Build error occurs after changing to SDK 4.0

100 Views Asked by At

I have an app code which was running successfully on iPhone SDK 3, but now I have changed to SDK 4.0 and the code gives error.

Here is the error:

enter image description here

And my frameworks are:

enter image description here

How can I resolve this?

2

There are 2 best solutions below

1
On

Check that you're building the iPhone target and it includes a Foundation.framework. From error messages you can see that it cannot find cocoa objects

2
On

Something's messed up about your development environment. I'm guessing you tried to install the 4.0 api over top of the 3?

No idea really specifically whats happened, but it's lost track of where its goods are. If I were you I'd reinstall a clean copy of XCode. Make sure you copy out your project folders, then delete your current install and put in a freshly downloaded one.