WeavrComponents 2.0.0

WeavrComponents 2.0.0

weavr-io 维护。



  • Weavr

1. 使用 Cocoapods 在 podfile 中添加组件和源。

//Weavr Component and KYC
pod 'WeavrComponents' ,'1.1.0'
pod 'IdensicMobileSDK' , '1.19.5'
source 'https://cdn.cocoapods.org/'
source 'https://github.com/SumSubstance/Specs.git'

2. 运行 pod install

:::tip 如果在模拟器中遇到类似 could-not-find-module-for-target-x86-64-apple-ios-simulator found arm64 的错误,则需要添加一个后置安装器

post_install do |installer|
    installer.pods_project.targets.each do |target|
        
            target.build_configurations.each do |config|
                config.build_settings['ONLY_ACTIVE_ARCH'] = 'NO'
               
            end
    end
  end

:::

3. 使用您的 UI Key 导入和初始化框架。

import WeavrComponents

接下来,您需要初始化您的框架,使用您在创新者门户中找到的 UI key

UXComponents.initialize(env: ENV.PRODUCTION, uiKey: "Your UI Key")

您的 UI key(uiKey)可在多门户的 API 设置屏幕上找到