1. Mobile
Español
  • Español
  • English
  • Home Page
  • Libraries & SDKs (Online Payments)
    • Release notes
    • Mobile
      • Kushki Android
      • Kushki iOS 
      • Kushki iOS ARM Setup
    • Web
      • Kushki.js 🌐
      • kushki.js-hosted-fields
        • kushki.js Hosted Fields
        • Guía de migración a Kushki.js 2.0
        • Antifraud
          • Interfaces
            • SecureInitRequest
            • SecureInitResponse
            • SiftScienceObject
          • Methods
            • requestInitAntiFraud
            • requestSecureInit
            • requestValidate3DS
        • Card
          • CarApplePay interface
            • ICardApplePay Interface
          • Card-Interface
            • ICard Interface
            • ICardSubscriptions Interface
          • Errors
            • Error list
          • Interfaces
            • Amount
            • ApplePayGetTokenOptions Interface
            • ApplePayOptions Interface
            • ApplePayPaymentContact
            • AppleTokenResponse
            • BrandByMerchantResponse Interface
            • CardFieldValues
            • CardInfo
            • CardOptions
            • CardTokenResponse
            • DeferredByBinOptionsResponse
            • DeferredInputValues
            • DeferredValuesResponse
            • DeviceTokenRequest
            • Field
            • FieldInstance
            • Fields
            • FieldValidity
            • FormValidity
            • MasterCardBrandingRequest
            • SecureDeviceTokenOptions
            • Styles
            • TokenResponse
            • VisaBrandingRequest
          • Methods
            • initApplePayButton
            • initCardToken
            • initSecureDeviceToken
            • requestBrandsByMerchant method
            • requestDeviceToken method
            • requestInitCardBrandingAnimation
          • Types
            • CssProperties
            • Currency
            • FieldTypeEnum
        • Card Payouts
          • Card Payouts Interface
            • ICardPayouts
          • Enumerations
            • Enumeration `InputModelEnum`
          • Errors
            • Errors
          • Interfaces
            • CardPayoutOptions
            • CardPayoutSubscriptionTokenResponse
            • CardPayoutUniqueTokenResponse
            • Field
            • Fields
            • FieldValidity
            • Interface FormValidity
            • Interface `Styles`
          • Methods
            • initCardPayoutToken
          • Type Aliases
            • CardPayoutTokenResponse
            • InputTypeEnum
          • Types
            • CssProperties
        • Kushki
          • Methods
            • init function
            • requestBankList function
            • requestCommissionConfiguration function
          • Classes
            • KushkiError
          • Interfaces
            • CommissionConfigurationRequest
            • IKushki
            • KushkiOptions
Bienvenida
Perú 🇵🇪México 🇲🇽Ecuador 🇪🇨Colombia 🇨🇴Chile 🇨🇱
Bienvenida
Perú 🇵🇪México 🇲🇽Ecuador 🇪🇨Colombia 🇨🇴Chile 🇨🇱
  1. Mobile

Kushki iOS ARM Setup

New project setup using kushki-ios-arm 🍎#

This article will guide you through the configuration of the Kushki library for an ARM processor (Apple Silicon M1/M2/M3). This will allow you to perform tests on physical devices or simulators.
Prerequisites
You must have CocoaPods installed.
Important
Please follow these steps in exact order to ensure a successful build.

1. Create a new project in Xcode#

ab765f4d-92b1-436b-b9db-bd71e1727e32.png
A. Select App.
B. Give it a name and the organization identifier. In this case, we will use the name TestKushkiLib.
C. Select the place where we are going to save the new project (this will create a local git repository).

2. Create a Podfile#

A. Open a terminal at the root of your project and create a Podfile with the command:
B. Open the newly created Podfile and place the kushki-ios-arm library as a dependency. Additionally, you must set the platform variable to ios, '14.3'.
Here is the complete example:
C. Run the install command in the terminal inside the folder where our Podfile is located:
4.
Close Xcode and open the TestKushkiLib.xcworkspace file (white icon) that was created. This contains both your project and the link to the pods.

3. Add Visa and Mastercard libraries#

A. Copy the MastercardSonic.xcframework and VisaSensoryBranding.xcframework libraries into your main TestKushkiLib folder (via Finder).
B. In Xcode, go to the TestKushkiLib project (left bar) -> TARGETS → TestKushkiLib -> Build Phases. In the Link Binary With Libraries section, drag and drop the Visa and Mastercard libraries you just copied.
6d5152b9-9a6f-4de0-a0d1-6125b2514867.png
C. Now, go to the Pods project (left bar) -> TARGETS → kushki-ios-arm -> Build Phases. In the Link Binary With Libraries section, click on the + sign and add the Visa and Mastercard libraries there as well.
67678a2c-d1be-48ea-a2dd-66dbd0813bd5.png

4. Set up the project#

A. Go to TestKushkiLib project -> TARGETS → TestKushkiLib -> Build Settings.
B. Search for the term sandboxing.
C. Set the User Script Sandboxing property to No.
1b53108a-be32-4125-a319-2c5d4488cf06.png
D. Go to TestKushkiLib project -> TARGETS → TestKushkiLib -> General.
E. In the Framework, Libraries and Embedded Content section, ensure the MastercardSonic.xcframework library is set to Embed & Sign.

692e7afa-848d-4db4-ab26-1b040b7268ad.png#

5. Change the Cardinal framework#

Critical Step
You must replace the Cardinal framework manually inside the Pods folder for the project to compile correctly on ARM simulators.
A. Navigate to this path in your project folder:
TestKushkiLib/Pods/kushki-ios-arm/Frameworks
B. Delete the existing CardinalMobile.framework folder.
C. Extract the contents of the attached zip CardinalMobileiOSXC.zip.
D. Go to the path CardinalMobile.xcframework/ios-arm64 from the extracted zip.
E. Copy the CardinalMobile.framework folder found there.
F. Paste it back into your project path: TestKushkiLib/Pods/kushki-ios-arm/Frameworks.

6. Create a test button#

In the ContentView.swift file of your project, add a button with the token request code to test the integration.

7. Run the simulation 📲#

Select your target simulator (e.g., iPhone 15) and press Run (Cmd + R). Click the "Charge" button and check the console for the transaction result.
Modified at 2026-04-16 14:14:30
Previous
Kushki iOS 
Next
Kushki.js 🌐
Built with