설치

요구사항

  • iOS 13+

  • Swift 5.x

설치하기

WepinLogin은 CocoaPods를 통해 사용할 수 있습니다. 설치하려면 Podfile에 다음 줄을 추가하시면 됩니다.

pod 'WepinLogin'

⚠️ Notice - Resolution for Build Errors

WepinLogin 라이브러리를 빌드할 때 다음과 같은 오류가 발생할 수 있습니다:

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

이 오류는 secp256k1 라이브러리의 "최소 배포 대상" 설정을 변경하여 해결할 수 있습니다. secp256k1 라이브러리 프로젝트의 "최소 배포 대상" 설정을 Xcode에서 지원하는 iOS 버전으로 업데이트하십시오. 이렇게 하면 발생하고 있는 빌드 오류가 해결될 것입니다.

프로젝트에 WepinLogin 추가하기

import WepinLogin

Info.plist 설정

앱의 URL 스킴을 Info.plist 파일에 추가해야 합니다. 이는 인증 과정이 끝난 후 앱으로 리다이렉션되기 위해 필요합니다.

Url scheme format : 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

릴리즈된 패키지 버전은 아래 깃허브에서 확인 가능합니다.

https://github.com/WepinWallet/wepin-ios-sdk-login-v1/releases

Last updated