TacirlerSDK_DOB_iOS-test
需求
- +iOS 13.0
安装
TacirlerSDK 可以通过 CocoaPods 使用。要安装它,只需将以下行添加到您的 Podfile 中
use_frameworks!
platform :ios, '13.0'
target 'YOUR-TARGET-NAME' do
pod 'TacirlerSDK_DOB_iOS-test'
end
post_install do |installer|
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings['BUILD_LIBRARY_FOR_DISTRIBUTION'] = 'YES'
config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '13.0'
end
end
end
配置
- 在目标应用中选择
签名与能力
标签页,点击+能力
按钮并添加近场通信标签读取
能力。 - 添加您的Info.plist文件所需的权限;
<!--
FOR NFC
-->
<key>com.apple.developer.nfc.readersession.iso7816.select-identifiers</key>
<array>
<string>A0000002471001</string>
</array>
<key>NFCReaderUsageDescription</key>
<string>Permission string</string>
<!--
FOR Camera
-->
<key>NSCameraUsageDescription</key>
<string>Permission string</string>
<key>NSMicrophoneUsageDescription</key>
<string>Permission string</string>
- 请确保您的
.entitlements
文件中有以下行;
<dict>
<key>com.apple.developer.nfc.readersession.formats</key>
<array>
<string>TAG</string>
</array>
</dict>
配置示例用法与自定义选项
import UIKit
import TacirlerSDK
class ViewController: UIViewController {
override func viewDidLoad() {
super.viewDidLoad()
}
override func didReceiveMemoryWarning() {
super.didReceiveMemoryWarning()
// Perform necessary tasks in case of memory shortage here.
}
@IBAction func clicked(_ sender: Any) {
// Customize your theme settings
// if you comment out this section it will be show the default app color theme in your device/simulator.
let customTheme = SDKConfiguration(
backgroundColor: UIColor.lightGray,
contentViewBackgroundColor: UIColor.cyan,
buttonEnabledBackgroundColor: UIColor.green,
buttonDisabledBackgroundColor: UIColor.red,
buttonTextColor: UIColor.purple,
placeHolderTextColor: UIColor.brown,
borderColor: UIColor.cyan,
tintColor: UIColor.purple,
iconColor: UIColor.orange,
checkBoxColor: UIColor.brown,
viewControllerTitleColor: UIColor.red,
logoImageName: "logo3",
fontType: .aguafinaScriptRegular
)
// Set the theme through SDKConfigManager
SDKConfigManager.shared.sdkConfiguration = customTheme
// Create TacirlerSDKViewController
let vc = TacirlerSDKViewController()
vc.authorizeToken(
// put your token and license id in here
// if you don't available or lost it contact with:
// [email protected]
inputToken: "YOUR_TOKEN",
licenseID: "YOUR_LICENSE_ID"
)
// Present TacirlerSDKViewController modally
vc.modalTransitionStyle = .coverVertical
vc.modalPresentationStyle = .fullScreen
present(vc, animated: true)
}
}
重要说明
如果您使用XCode版本14.3.1进行开发,您可以直接通过使用'pod update'命令来拉取并使用更新的SDK。
但是,如果您已升级到XCode版本15.0,您可能在执行'pod update'后构建时遇到以下错误
DT_TOOLCHAIN_DIR无法用于评估LIBRARY_SEARCH_PATHS,请使用TOOLCHAIN_DIR代替
在此类问题相关的新更新发布之前,作为临时解决方案,每次执行'pod update'后,请在项目文件夹内的终端中执行以下步骤
find . -name "*.xcconfig" -type f -exec grep -l 'DT_TOOLCHAIN_DIR' {} \; | while IFS= read -r file; do sed -i '' 's/DT_TOOLCHAIN_DIR/TOOLCHAIN_DIR/g' "$file"; done
然后,重新打开项目再进行构建。在此步骤后,您可能会遇到如下运行时错误:
Sandbox: rsync(35790) deny(1) file-write-create
对此,您可以按照以下步骤操作:
打开Xcode项目。
点击左侧侧边栏中的项目名称以打开项目设置。
在“目标”部分中选择您要检查的目标。
点击“构建设置”标签。
在搜索栏中键入“ENABLE_USER_SCRIPT_SANDBOXING。”
如果ENABLE_USER_SCRIPT_SANDBOXING的值设置为“No”,则已禁用。如果设置为“Yes”,则已启用。
SDK流程
KVKK批准屏用户需要勾选两个复选框才能继续。
KVKK政策和商业及电子消息屏
MASAK声明屏
每日和每月通知屏用户需要勾选复选框才能继续。
检查NFC可用性屏幕在此屏幕上应进行NFC可用性控制,否则用户无法继续。
表单屏幕用户需要填写表单才能继续。
问卷屏幕用户需要选择一个选项才能继续。如果他们选择其他或“Tactirler投资个人”,则用户需要填写文本字段。
手机号码屏幕
SMS OTP Code Screen
MRZ Scanner Screen将土耳其身份证置于摄像头前继续。
NFC Reader Screen 将土耳其身份证置于手机背面以继续。
Information Check Screen
Selfie Screen
自拍验证屏幕
地址验证屏幕 位于居住地表格上的QR码可扫描。
客户信息屏幕
视频通话屏幕
结果屏幕申请失败申请成功
作者
Papilon Savunma