Security researchers say iOS’s security woes stem in part from Apple putting too much trust in its own software’s code.