Attach the drywall to the framing, tack the rigid foam in place, screw nailers through to framing with structural screws. You may need to use longer drywall screws in the field (depending on how far apart your framing is) to screw through the foam and into the outer nailers.