Codesign error for iphone

I’m trying to compile my juce project to iphone/ipad right now, and I’m getting this error:CodeSign error: code signing is required for product type ‘Application’ in SDK ‘Device - iPhone OS 3.2’

Does anybody know how I can resolve this error? In order to try to compile it for iphone, I duplicated my existing target, and chose the Iphone device 3.2 as the base sdk.

Is that how I should port my project to iphone, or is there a better way?

I think the apple forums would be a better place to look for help about that - code signing’s the one thing about iPhone development that’s an absolute PITA.

I figured it out. I just had to change the target setting from ‘device’ to ‘simulator’.
I got my app working on the ipad. Now I wonder how I can make my app roate, so I can display it 1024x768 instead of upright. Is there a place to do it in Juce, or do I have to dig further into the iphone sdk.
Same goes to accelerometer checking and multi touch. What would be the best way to access those features?