When the licence file of the pod is in a directory that is not named after the pod (e.g. not in the root, instead in a subfolder called "foo") you get the wrong title (in this case: "foo").
The actual line of code can be found in credits.py:
title = path.split("/")[-2]
This just takes the parent of the licence file as title.
Example pod where it fails:
Expected Behavior: Title should be "AppCenter"
Actual Behavior: Title is "iOS" (because the parent folder of Licence file is "iOS")