is TapLinx IOS SDK incompatible with Xcode 16?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

is TapLinx IOS SDK incompatible with Xcode 16?

544 Views
dario_sec
Contributor I

Followed instruction on UG10045 released

19 August 2024

 

on Xcode 16 released

16 September 2024

 

Added also a step missing in the document:

Build Settings -> Swift Compiler -Search Paths + $(PROJECT_DIR)/TapLinxLibrary

 

import TapLinxLibrary returns

Compiled module was created by a different version of the compiler '5.10.0.13'; rebuild 'TapLinxLibrary' and try again:

[STRIPPED]/TapLinxLibrary/TapLinxLibrary.swiftmodule/arm64-apple-ios.swiftmodule

 

Cleaned Build / removed DerivedData directory and then returns:

Cannot load module 'TapLinxLibrary' built with SDK 'iphoneos17.5' when using SDK 'iphoneos18.0': [STRIPPED]/TapLinxLibrary/TapLinxLibrary.swiftmodule/arm64-apple-ios.swiftmodule

Could you please confirm compatibility with Xcode 16?

 

 

 

Labels (2)
0 Kudos
Reply
8 Replies

319 Views
ukcas
NXP Employee
NXP Employee

Dear dario_sec,

 

There are Limitations on including device specific library in iOS applications:

 

Using device (iOS) specific library has some limitations. The limitations include:

  1. SwiftUI preview
  2. simulator based debugging
  3. workflows.

 

TapLinx SDK is such a library which supports only physical devices not simulator. Since the NFC tag reading cannot be done through simulator, it is disabled.

 

SwiftUI preview works with simulator features and TapLinx library supports only physical device execution we are facing issue while previewing the UI. 

 

For preview of UI, library can be temporarily disabled if possible:

In the first screenshort  “let manager = TLLibraryManager.shared()”  is commented under  “initializeLibraryManager()” method and we can preview the UI without any error.

preview_XCode_Taplinx_iOS_NOTworking.png

preview_XCode_Taplinx_iOS_working.png

  

0 Kudos
Reply

460 Views
ukcas
NXP Employee
NXP Employee

Hello Dario,

 

It may be related to the same topic, but not necessarily. Please give it a try with solution in this thread:

https://community.nxp.com/t5/TapLinx-SDK-TagWriter-and/Taplinx-iOS-app-reading-Desfire-EV2/m-p/20143... 

Best regards,

TapLinx team

0 Kudos
Reply

445 Views
dario_sec
Contributor I

Thank you for your support,

I think solution you reported doesn't fix compatibility problem with Xcode 16.

 

We tried Xcode 15 and compatibility problem had gone away, but library stills doesn't work.

SwiftUI needs to build preview on x86-64 and library seems to work only for arm, so there are problems .

 

We decided to write our own library, really challenging (but also really interesting). 

 

As suggested in thread you reported it would be great if you update and improve document also with a working example.

 

Regards,

Dario

0 Kudos
Reply

515 Views
KellyLi
NXP TechSupport
NXP TechSupport

Hello @dario_sec 

The application note does not specify a specific version of Xcode, which means that Xcode 16 is also supported.

0 Kudos
Reply

503 Views
dario_sec
Contributor I

Thank you for your answer.

 

Do you have any clues why Xcode is suggesting this in the error?

"rebuild 'TapLinxLibrary' and try again" (cannot rebulid without library source code)

 

Regards,

Dario

 

0 Kudos
Reply

109 Views
alv_Developer1
Contributor I

Hi,

I am facing same issue with Xcode version 15.0 and Swift 5, did you manage to solve this?

Could you write your own library?, I wonder if low level NFC access methods are complicated or not on iOS withouth the SDK...

 

Regards

 

Alvaro

0 Kudos
Reply

86 Views
dario_sec
Contributor I

Hi Alvaro,

we tried also installing <16 Xcode but we  wasted a lot of time without any success.

My personal opinion is that this library should be totally refactored: it seems ported from other languages and it is really big. 

Yes you can write your own library using interfaces exposed by Apple CoreNFC we are completing all authentication types, we wrote around 1000 code rows, but still working on it.

It would be nice to share library but as you probably know it is not possible due to NDA.

The positive aspect is truly getting to know the product.

0 Kudos
Reply

51 Views
alv_Developer1
Contributor I

Hi Dario,

 

Thanks for your response :), yes it does not seem very compatible with Swift and Xcode, I think we'll wait to see if they fix this bug soon.

0 Kudos
Reply