The two executives reported to Apple CEO Tim Cook and are the latest members of senior leadership to exit the iPhone maker.