I kept hitting my head against the wall, and getting a million stupid errors trying to resolve header files. But in the end I got it working, and I will no longer be one of the guys pestering the old Cocoapods servers :)
For whoever comes after me... When ChatGPT suggests changing your Objective-C from this:
#import package.h
To this:
#import <package/package.h>
Just skip that rabbithole of inifiny-nested failure, and just do this instead:
@import package;
And you're done. You can thank me later :)