I have downloaded the iProcessing framework (lets you build native javascript apps for iPhone) and when I try to compile, I get:
Undefined symbols for archit
Make sure you link in the iAd framework to your project. Do this by going to your project settings in Xcode. Then select your target and in the right pane go to "Build Phases." Then in the "Link Binary with Libraries" section hit the "+" button to add more frameworks. Select iAd.framework click "Add" and then rebuild.
The screen looks something like this: