Fixed simulator issue that can't select the photo from gallery