HEIF, HEIC and HEVC
Three names that get used interchangeably and should not be.
HEIF is the container — a standardised file format that can hold images, sequences and metadata, and is agnostic about how the images inside are encoded.
HEVC, also called H.265, is a video codec.
HEIC is the combination: a HEIF container holding HEVC-encoded still images. That is what an iPhone writes.
The distinction matters because HEIF can hold other codecs — an AVIF file is, technically, a HEIF-derived container holding AV1-encoded images. The container is not the problem; HEVC is.