I didn't think that was an issue with CocoaPods, but still it's being phased out.
You can add a KMP to your Xcode project either directly or using Swift Package Manager (SPM).
Here's how you can add it directly with direct linking.
Here's how you can add it with SPM