Updated for ios build