Installation

Requirements

  • iOS 13+

  • Swift 5.x

Installation

WepinLogin is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod 'WepinLogin'

⚠️ Notice - Resolution for Build Errors

When building the WepinLogin library, the following error may occur:

SDK does not contain 'libarclite' at the path '/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/arc/libarclite_iphonesimulator.a'; try increasing the minimum deployment target

This error can be resolved by changing the "Minimum Deployment Target" setting of the secp256k1 library. Please update the "Minimum Deployment Target" setting of the secp256k1 library project to an iOS version supported by Xcode. This should resolve the build error you are encountering.

Import WepinLogin into your project.

import WepinLogin

Setting Info.plist

You must add the app's URL scheme to the Info.plist file. This is necessary for redirection back to the app after the authentication process.

The value of the URL scheme should be 'wepin.' + your Wepin app id.

<key>CFBundleURLTypes</key>
<array>
    <dict>
        <key>CFBundleURLSchemes</key>
        <string>Editor</string>
  			<key>CFBundleURLName</key>
  			<string>unique name</string>
        <array>
            <string>wepin + your Wepin app id</string>
        </array>
    </dict>
</array>

Release

The released package versions can be found on the GitHub repository below.

Last updated