Announcements

SecurID® Knowledge Base

Find answers to your questions and identify resolutions for known issues with knowledge base articles written by SecurID experts.

Repackaging SecurID SDK V2.5 for iOS to Work with iOS 16 Application

Applies To

RSA Product/Service Type: SecurID SDK V2.5 for iOS

Issue 

Apple has introduced the following changes recently:

  • Starting with Xcode 12.3, fat binaries created with “lipo” can no longer be used.
  • Apps must be built with single architecture frameworks, arm64 for device builds and x86_64 for simulator builds.
  •  If multiple architecture frameworks are desired, an xcframework must be used.
  • The SDK does not contain a framework dedicated for the simulator builds only.

Resolution

SecurID SDK V2.5 for iOS has been qualified to run on iOS16 application. The use of SDK 2.5 on iOS16 requires some repackaging to be applied, due to the changes introduced by Apple. The following sections outline the required procedures. 

Repackaging Framework for Simulator Builds

To create a framework and extract the architecture from the fat binary (Release-merged folder), follow these steps:

  1. Copy Release-merged folder to Release-simulator folder.
  2.  Open terminal.
  3. cd ./Release-simulator/SecurIDLibFramework,framework/
  4. lipo -archs ./SecurIDLibFramework. (You should see x86_64 & arm64)
  5. lipo -remove arm64 ./SecurIDLibFramework -o ./SecurIDLibFramework

Repackaging Framework to Multi-Architecture XCFramework

 To repackage the SDK V2.5 framework:

  • Run the following command:

xcodebuild -create-xcframework -allow-internal-distribution -framework ./Release-iphoneos/SecurIDLibFramework.framework -framework ./Release-simulator/SecurIDLibFramework.framework -output ./SecurIDLibFramework.xcframework

Building the Sample App

To build the Sample App:

  • Remove the old framework and add new SecurIDLibFramework.xcframework to the app target.
  • For simulator builds, you need to add the build setting to exclude arm64 architecture. 
Labels (1)
No ratings

In this article

Version history
Last update:
‎2023-03-02 06:10 PM
Updated by: