Boc groups as protectors and directors for Ir-catalyzed C-H borylation of heterocycles.