Kushki Developer Portal
  1. Mobile
Kushki Developer Portal
  • KUSHKI API
    • Kushki Developer Portal 🚀
    • Perú 🇵🇪
    • Ecuador 🇪🇨
    • Chile 🇨🇱
    • México 🇲🇽
    • Colombia 🇨🇴
    • 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
          • Javascript
          • Card Payouts
            • Interfaces
              • Interface `FormValidity`
              • Interface `Styles`
              • Interface `CardPayoutUniqueTokenResponse`
              • Interface `CardPayoutSubscriptionTokenResponse`
              • Interface `CardPayoutOptions`
              • Interface `Fields`
              • Interface `Field`
              • Interface `FieldValidity`
            • Type Aliases
              • Type Alias `InputTypeEnum`
              • Type Alias `CardPayoutTokenResponse`
            • Errors
              • Errors
            • Card Payouts Interface
              • Interface `ICardPayouts`
            • Enumerations
              • Enumeration `InputModelEnum`
            • Methods
              • initCardPayoutToken method
            • Types
              • Type Alias `CssProperties`
          • Antifraud
            • Interfaces
              • Untitled Doc
              • Untitled Doc
              • SiftScienceObject Interface
            • Methods
              • Untitled Doc
              • requestInitAntiFraud method
              • Untitled Doc
          • Kushki
            • Interfaces
              • Untitled Doc
              • CommissionConfigurationRequest interfaces
              • Untitled Doc
            • Classes
              • Untitled Doc
            • Methods
              • requestBankList function
              • requestCommissionConfiguration function
              • Kushki.js Hosted Fields init function
          • Card
            • Card-Interface
              • Untitled Doc
              • Untitled Doc
            • Interfaces
              • Untitled Doc
              • AppleTokenResponse Interface
              • Untitled Doc
              • Untitled Doc
              • BrandByMerchantResponse Interface
              • ApplePayOptions Interface
              • ApplePayPaymentContact Interface
              • ApplePayGetTokenOptions Interface
              • Untitled Doc
              • Untitled Doc
              • MasterCardBrandingRequest Interface
              • Untitled Doc
              • Untitled Doc
              • Untitled Doc
              • Untitled Doc
              • Untitled Doc
              • Untitled Doc
              • Untitled Doc
              • Untitled Doc
              • Untitled Doc
              • VisaBrandingRequest Interface
              • Untitled Doc
              • Untitled Doc
              • Untitled Doc
            • CarApplePay interface
              • ICardApplePay Interface
            • Errors
              • Untitled Doc
            • Methods
              • Untitled Doc
              • Untitled Doc
              • Untitled Doc
              • requestInitCardBrandingAnimation method
              • Untitled Doc
              • requestBrandsByMerchant method
            • Types
              • Untitled Doc
              • Untitled Doc
              • Untitled Doc
    • Schemas
      • webhooksChargeback
      • one-and-two-step-payment
      • webhooks
      • transactionType
      • threeDomainSecure
      • product
      • payment_submethod
      • paymentMethod
      • orderDetails
      • headers
      • extraTaxes
      • documentType
      • currency
      • currency-cash-in
      • currency-CL
      • binInfo
      • UnexpectedErrorResponse
      • SubscriptionUpdate
      • SubscriptionAdjustmentRequest
      • Subscription
      • Submerchant
      • Shipping-Address
      • Promotions
      • Metadata
      • Language
      • InvalidBinResponse
      • GetConfigurationRequest
      • ErrorResponse
      • Deferred
      • Country
      • ContactDetails
      • ChargesVoidCardResponse
      • Channel
      • Card
      • Billing-Address
      • BadRequestResponse
      • Amount
      • Amount-cash-in
      • Amount-CL
  • APPIAN-SUBMERCHANT-REGISTER
    • Submerchant Validation in Batch
    • Query submerchant status by requestId/submerchantId
    • Get submerchantIds
    • Get credentials for submerchants
  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-02-04 20:27:29
Previous
Kushki iOS 
Next
Kushki.js 🌐
Built with