[TIMOB-11869] [TIMOB-11267] Some fixes to the ios environment lib.