wp_get_archives() not working for my custom post type

wp_get_archive() does not work natively with custom post type, even if the official documentation let suppose it’s possible to use CPT as argument ( https://codex.wordpress.org/Template_Tags/wp_get_archives)

post_type
(“string”) Limit archives to a post type. Default is ‘post’. (since Version 4.4)

You can find discussion and possible workaround in this stackoverflow post: https://stackoverflow.com/questions/8943251/wp-get-archives-for-custom-post-type-not-working

and here: Custom Post Type Archives by Year & Month?

Please note also that in your CPT register_post_type() args you should always set public to “true” to have a public accessible url