Swiftpack.co -  Adyen/adyen-wechatpay-ios as Swift Package
Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
Adyen WeChat Pay SDK Wrapper
.package(url: "https://github.com/Adyen/adyen-wechatpay-ios.git", from: "1.1.0")


The WeChat Pay SDK is a static .a library. This repository provides an XCFramework around the static library for more convenient importing of the WeChat Pay SDK. This is especially useful when using Swift Package Manager.


  • For embedding the XCFramework into an Xcode project, Xcode 11+ is required.
  • For integrating through Swift Package Manager, Xcode 12+ is required.
  • Supports iOS 10+.


Embedding XCFramework.

  1. Drag the XCFramework into your Frameworks folder.
  2. Make sure to Select “Copy items if needed” and “Create groups” options when adding the XCFramework file.
  3. Navigate to your project settings, then General tab, under “Frameworks, Libraries and Embedded Content”, make sure to select “Embed & Sign” for your newly added XCFramework.

Swift Package Manager

  1. Follow Apple's [Adding Package Dependencies to Your App](https://raw.github.com/Adyen/adyen-wechatpay-ios/main/ https://developer.apple.com/documentation/xcode/adding_package_dependencies_to_your_app ) guide on how to add a Swift Package dependency.
  2. Use https://github.com/Adyen/adyen-wechatpay-ios as the repository URL.
  3. Specify the version to be at least 1.0.0.

:warning: Please make sure to use Xcode 12.0+ when adding AdyenWeChatPayInternal using Swift Package Manager.

:warning: Swift Package Manager for Xcode 12.0 and 12.1 has a know issue when it comes to importing binary dependencies. A workaround is described here.


  1. Add pod 'AdyenWeChatPayInternal' to your Podfile.
  2. Run pod install.


  1. Add github "adyen/adyen-wechatpay-ios" to your Cartfile.
  2. Run carthage update --use-xcframeworks.
  3. Link the framework with your target as described in Carthage Readme.

Note: for non-M1 mac use workarounds from here


AdyenWeChatPayInternal is just a wrapper around the original WeChat Pay SDK, with a few minor improvements:

  • Handles the importing of the dependent system frameworks and libraries.
  • Removes the need for adding -Objc and -all_load other linker flags to the your project build settings.

Other than these improvements, the framework works in the same way as the original WeChat Pay SDK.


Refer to the original documentation.


If you have a feature request, or spotted a bug or a technical problem regarding the XCFramework wrapper, create a GitHub issue. For other questions or issues regarding the SDK, contact WeChat Pay iOS SDK support.


MIT license. For more information, see the LICENSE file.


Stars: 0
Last commit: 5 weeks ago

Ad: Job Offers

iOS Software Engineer @ Perry Street Software
Perry Street Software is Jack’d and SCRUFF. We are two of the world’s largest gay, bi, trans and queer social dating apps on iOS and Android. Our brands reach more than 20 million members worldwide so members can connect, meet and express themselves on a platform that prioritizes privacy and security. We invest heavily into SwiftUI and using Swift Packages to modularize the codebase.

Submit a free job ad (while I'm testing this). The analytics numbers for this website are here.

Release Notes

5 weeks ago
  • Add support for Cocoapods.
  • Add support for Carhage.

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics