Can we replace Cocoapods with Swift Package Manager in iOS?
Starting with Xcode 11, you can use Swift Packages in your Xcode project. See Apple's documentation on Swift Packages for more information.
You can also learn more from the Swift Package Manager repo on Github.