iPhoneOS, like MacOS X, uses proprietary elements such as COCOA as UI framework. You cannot run such applications on Linux or Maemo. Projects for compatibility are GNUStep and Cocoatron but they're in heavy development and not aimed for typical end users. The console applications are probably already ported to Linux.