Skip to content

Instantly share code, notes, and snippets.

@tareq3
Last active November 7, 2022 10:33
Show Gist options
  • Save tareq3/47e63e41a16705429dda14e9a9ade7d9 to your computer and use it in GitHub Desktop.
Save tareq3/47e63e41a16705429dda14e9a9ade7d9 to your computer and use it in GitHub Desktop.

1. Add Components and sources using cocoapods to your 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. Run pod install

If in the simulator you get an error similar to could-not-find-module-for-target-x86-64-apple-ios-simulator found arm64, then you need to add a post installer

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. Import and initialise the framework using your UI Key.

import WeavrComponents

Next, you need to initialise your framework using the UI key you will find on your innovator portal

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

Your UI key, uiKey is available on the API settings screen in the Multi Portal.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment