Adding checks to see if authorize iOS needs to be run

I'm merging this now to fix my build break