Have you given darktable access to the disk in your Security and Privacy preference in the macOS preferences?