The purpose of this phase 1/2 study is to evaluate the safety, pharmacokinetics, and anti-tumor activity of oral AP32788 in patients with non-small cell lung cancer (NSCLC). The trial will be conducted in two parts: a dose escalation phase, followed by an expansion phase. The goal of the dose escalation phase is to determine the safety profile of orally administered AP32788, including the maximum tolerated dose (MTD), dose limiting toxicities (DLTs), recommended phased 2 dose (RP2D) and pharmacokinetic profile. Once the RP2D is established, the expansion phase will assess the preliminary anti-tumor activity of AP32788 in 4 histologically and molecularly defined NSCLC cohorts. Approximately 105 patients will be enrolled.