Help, Help!

I create a empty project by cocos2d-templates, And I add the app to the real device of ipad(version is 3.2.2), then it cann’t run! why? my xcode version is xcode4.
thanks!

Have you changed TARGETS~~>YourGame~~>Summary->Device from iPhone (the default value) to iPad or Universal?

Yes! I find! Need modify “window.rootViewController = viewController;” to “[window addSubview:viewController.view];” in the file of “viewController.mm”!