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.
Embeded WeChat SDK versions: 1.9.2
:heavy_exclamation_mark: WeChat SDK versions 1.8.6.1 and below contain UIKit symbols and cause rejection during App Store Review: "ITMS-90809: Deprecated API Usage".
https://github.com/Adyen/adyen-wechatpay-ios
as the repository URL.2.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.
pod 'AdyenWeChatPayInternal'
to your Podfile
.pod install
.github "adyen/adyen-wechatpay-ios"
to your Cartfile
.carthage update --use-xcframeworks
.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:
-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.
:warning: WeChat .a
static library does not support simulator for arm64
architecture.
To debug on simulator use debug flags
#if !(targetEnvironment(simulator))
// Code that calls WeChat SDK
#endif
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.
link |
Stars: 5 |
Last commit: 17 weeks ago |
Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics