Skip to main content
Associate
October 6, 2025
Solved

ST25DVCryptoDemo iOS not working

  • October 6, 2025
  • 25 replies
  • 1738 views

Hello @all,

 

I've downloaded ST25DVCryptoDemo for iOS from here, in order to take a look into the demo code for a new project.
Once I've tried to build the Demo app I've got a big amount of errors. In fact the console gave me this message "too many errors emitted, stopping now"


Screenshot 2025-10-06 at 12.16.17.png

Could someone please help me to fix those issues and make everything works properly?
I've also download the ST25SDK but, when I've took a look the Readme file I saw that the SDK can be used for Android app and PC app (not iOS app)

Best answer by victor laraison

Hi ,

Regarding your questions, ST’s iOS app does not require any private Apple entitlement to enable or use the FTM mailbox of the ST25DV. The only entitlement needed for all our iOS NFC applications is the standard iOS coreNFC entitlement.

If you review the source code of the iOS NFC Tap application (refer to STSW-ST25IOS001 | Product - STMicroelectronics), you will find numerous examples demonstrating how to use the FTM mailbox.

Specifically, you can refer to ST25DVI2CDataTransfertViewController.swift for the UI implementation and the folder \st25sdklib\include\com\st\st25sdk\ftmprotocol for the FTM protocol used in our demo.

Another important point to note is that iOS CoreNFC custom commands operate only in non-addressed mode, and the manufacturer code is automatically appended by the iOS custom command itself.
I let you have a look into a previous support here : Solved: NFC - ST25DV - How to use custom commands in my ow... - STMicroelectronics Community

If you need further support or assistance, please feel free to reach out.



25 replies

Visitor II
October 22, 2025

Sorry,

Can you answer me? We are blocked.

If you wish, we can contact you through alternative channels for more targeted assistance.

Thanks

victor laraison
ST Employee
October 23, 2025

 

Hi Luca92,

I’m currently working on your issue. Could you please confirm whether you are using the NFC Tap demo or the Crypto demo?
From your last message, it appears that you used the NFC Tap demo.

For your information, when compiling the NFC Tap target, it is linked with the NFC AppClip. I recommend using the "ST25NFCappNoClip" target instead.

Regarding your question about iOS26 : 
I have not tested the SDK regarding compatibility with iOS 26 and the latest Xcode version. I will verify this and get back to you with the results as soon as possible.

Thx and br,

 

victor laraison
ST Employee
October 23, 2025

Hi again,

I have uploaded the ST25DVCrypto Demo iOS source code directly from:
https://www.st.com/en/embedded-software/stsw-st25ios003.html

My Xcode environment details are:

  • macOS 15 / Apple M4
  • Xcode 16.4
  • iPhone 12 Pro / iOS 18.6.2
  • Jobjc 2.4

When I first recompiled the project, I encountered errors related to the "Charts" library—it was outdated for the Xcode and iOS versions I’m using. To resolve this, I downloaded and integrated the latest version of Charts from GitHub.

Please update the Charts library in your environment by following these steps:

  • Download and install the latest version from GitHub: ChartsOrg/Charts 
  • Replace the existing "Charts" reference in your Xcode project with the new version. I recommend deleting the old folder first, then adding the new files directly to avoid any mismatches.

Note that the updated Charts library causes a compilation error due to multiple definitions of NSCopying in two files. To fix this, explicitly specify the module when referring to NSCopying to disambiguate, like this:

swift
open class ChartBaseDataSet: NSObject, ChartDataSetProtocol, Foundation.NSCopying

open class ChartDataEntry: ChartDataEntryBase, Foundation.NSCopying

After making these changes, I was able to compile and successfully install the app on my iPhone.

Let me know if you are still facing issues. 

Br,







Visitor II
October 27, 2025

Hi,

Thanks about this updated, because now the ST25DVCrypto Demo iOS works correctly and I can import the st25sdk into my project without errors.

I only have 2 more questions:

  1. Can you tell me the exact number of version of the STSDKiOS?
  2. Is there a solution to use the most recent j2objc version(3.1)?

Thanks

victor laraison
ST Employee
October 27, 2025

Good news !!! 
1- You can find the ST25SDKiOS Version in the file "about.m" under "com\st\st25sdk". 
CryptoDemo was done with an older version of sT25SDK : 1.5.0 
Today, the current version is 1.13.0

2- I recommend you to upgrade your project with the ST25SDKiOS provided into the package https://www.st.com/en/embedded-software/stsw-st25ios001.html (source of framework)

hope it helps

 

Visitor II
October 27, 2025

I try to build ST25ReadRange(source of framework), but the error is:

error: Clang dependency scanner failure: While building module 'st25sdkFramework' imported from st25sdkFramework-53f7edba.input:1:

In file included from <module-includes>:1:

/Users/luca/Downloads/STSW-ST25IOS005/Frameworks/st25sdkFramework.framework/Headers/st25sdkFramework.h:18:9: fatal error: 'STRegister.h' file not found

st25sdkFramework-53f7edba.input:1:1: fatal error: could not build module 'st25sdkFramework'.

Can you verify?

Thanks

victor laraison
ST Employee
October 27, 2025

Hi,

I have retested the application by re-downloading it from the website without making any modifications, and everything is working fine.

Do you have modified something in header search path into your environment ? Please, could you share your User Header Search Path ? 

Thx 

 

Visitor II
November 3, 2025

Hi,

Now the path is correct and the app builds correctly. One last thing, can you give us a framework that also works for simulators?

Thx

victor laraison
ST Employee
November 4, 2025

Regarding your request for a framework that works with simulators: unfortunately, ios CoreNFC does not support simulator environments, and as a result, we have not developed a ST25SDK framework for simulator.

However, we do have a fully functional framework designed for iOS apps running on actual devices and using iOS CoreNFC.
I let you have a look into STSW-ST25IOS001 | Product - STMicroelectronics and STSW-ST25IOS005 : this an iOS app using our ST25SDKFramework , based on J2OBC 2.4

Please let me know if you need any further information

Visitor II
November 6, 2025

Hi,

Now we use a Tag .iso15693 of type5 ST25DVTag. 

Can you show me a simple example(read, write)? Because we have problem about the init and uses of yours SDK.

We need to see all the procedure:

  1. Scan
  2. Connect
  3. Inizialize Sdk:

    ComStSt25sdkRFReaderInterface, ComStSt25sdkType5St25dvST25DVTag

  4. read or write a basic value

Thanks

victor laraison
ST Employee
November 7, 2025

hi ,

ST25SDKiOS is a straightforward port of the ST25SDK Java™ library to iOS and is designed to be very simple to use.
It contains all the necessary classes and abstractions to assist in developing your iOS applications.

I am attaching here a detailed document titled ST25SDKiOS_external.pdf that provides an extensive overview of the ST25SDKiOS, including its architecture, setup instructions, code sharing approach using J2ObjC, and multiple example usages. This document should be very helpful for your understanding, integration and development.


To help you with your current usage of the Tag.iso15693 of type5 ST25DVTag, here is a simple example demonstrating how to read from and write to a ST25DVC tag using ST25SDKiOS


Hope it helps.

Visitor II
November 12, 2025

Hi,

Do you use Swift 6 or Swift 5 into your demo app?

Thanks