DexCare SDK 6.0.0

This page contains information on how to upgrade from SDK 5.0 to SDK 6.0. For a full list of changes, see the Release Notes.

Xcode 12

This version drops support for Xcode 11. v6.0 will no longer work on Xcode 11 and you must upgrade to Xcode 12+ in order to use it. With this change, the framework has been upgraded to use the new .xcframework style of distribution. This will allow us to be more backwards compatible on swift versions going forward.

With the change however, some changes needed to be made. The main framework is now called DexcareiOSSDK

Anywhere where you had import DexcareSDK you’ll now have to update to import DexcareiOSSDK

Possible Errors

After you’ve upgraded, the first time you run the app you may receive:

dyld: Symbol not found: _$s21InputBarAccessoryView0abcD8DelegateP05inputB0_012didSwipeTextD4WithyA2AC_So24UISwipeGestureRecognizerCtFTq

This has to do with the way xcframeworks and 3rd party dependencies work. The workaround is to add the following to your podfile

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'
    end
  end
end

Making sure to pod install after

Cocoapods

We are no longer using the PodSpec-iOS going forward. Please update your PodFile to

 pod 'DexcareSDK', :git => 'https://github.com/Dexcare/DexcareSDK-iOS.git'

or if you want just want a specific version

pod 'DexcareSDK', :git => 'https://github.com/Dexcare/DexcareSDK-iOS.git', :tag => '6.0.0'

PaymentService

  • RetailService.uploadInsuranceCard is now deprecated. It has been moved to PaymentService.uploadInsuranceCard
  • VirtualService.getInsurancePayers is now deprecated. It has been moved to PaymentService.getInsurancePayers.
  • VirtualService.verifyCouponCode is now deprecated. It has been moved to PaymentService.verifyCouponCode.