Trouble implementing ios app using Taplinx SDK

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

Trouble implementing ios app using Taplinx SDK

Jump to solution
2,141 Views
DamianD
Contributor III

Hi, i'm trying to follow UG10045.pdf - Starting development with TapLinx iOS SDK. Below is excerpt from that guide:

3.4 Implementing the delegate method for APDU communication
To communicate with the TapLinx iOS Library and the Tag (or Card), a delegate method which is created inside
the MIFAREApduHandler must be implemented in your class. Below is the delegate method.

 

However i do not understand where i should implement that TapLinxApduHandlerProtocol, on what class? Where/how should i pass my class to something in Taplinx SDK to indicate where i implemented that hander? Is there a ios sample app like for Android? It would be very helpful. In case there is no such app, could someone share a code sample with full sdk initialization on ios?

Tags (1)
0 Kudos
Reply
1 Solution
1,918 Views
KaiLi
NXP TechSupport
NXP TechSupport

Hello @DamianD 

Since your problem involves the level of code debugging, we do not have such a test environment as yours, so your problem needs to be debugged by you, say sorry for that.

View solution in original post

0 Kudos
Reply
4 Replies
2,040 Views
DamianD
Contributor III

hi @KaiLi  - unfortunately there is only swiftsourceinfo file inside Project folder and it is of no use to me. When i add libTapLinxLibrary.a to xcode app project (and set up search paths) during compilation i get error:
/Users/xxx/Projects/xcodeproj/facilityapp/SampleTaplinxApp/SampleTaplinxApp/ContentView.swift:9:8 Compiled module was created by a different version of the compiler '5.10.0.13'; rebuild 'TapLinxLibrary' and try again: /Users/xxx/Projects/xcodeproj/facilityapp/SampleTaplinxApp/TapLinxLibrary2/TapLinxLibrary.swiftmodule/arm64-apple-ios.swiftmodule\

 

Could you hint me at what to do?

0 Kudos
Reply
1,919 Views
KaiLi
NXP TechSupport
NXP TechSupport

Hello @DamianD 

Since your problem involves the level of code debugging, we do not have such a test environment as yours, so your problem needs to be debugged by you, say sorry for that.

0 Kudos
Reply
2,097 Views
DamianD
Contributor III

thanks, i will give it a try and let you know

0 Kudos
Reply
2,112 Views
KaiLi
NXP TechSupport
NXP TechSupport

Hello @DamianD 

Unfortunately, there is not the dedicated sample for ios, but I think there should be something in SDK could refer to, like

sdk_TapLinx_Library_iOS\TapLinxv1.0.1\TapLinxiOSSDK\TapLinxiOSSDK\TapLinxLibrary\TapLinxLibrary.swiftmodule\Project.
Please try it.

0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-1974526%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ETrouble%20implementing%20ios%20app%20using%20Taplinx%20SDK%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1974526%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%2C%20i'm%20trying%20to%20follow%26nbsp%3BUG10045.pdf%20-%26nbsp%3BStarting%20development%20with%20TapLinx%20iOS%20SDK.%20Below%20is%20excerpt%20from%20that%20guide%3A%3C%2FP%3E%3CP%3E3.4%20Implementing%20the%20delegate%20method%20for%20APDU%20communication%3CBR%20%2F%3ETo%20communicate%20with%20the%20TapLinx%20iOS%20Library%20and%20the%20Tag%20(or%20Card)%2C%20a%20delegate%20method%20which%20is%20created%20inside%3CBR%20%2F%3Ethe%20MIFAREApduHandler%20must%20be%20implemented%20in%20your%20class.%20Below%20is%20the%20delegate%20method.%3C%2FP%3E%3CBR%20%2F%3E%3CP%3EHowever%20i%20do%20not%20understand%20where%20i%20should%20implement%20that%26nbsp%3BTapLinxApduHandlerProtocol%2C%20on%20what%20class%3F%20Where%2Fhow%20should%20i%20pass%20my%20class%20to%20something%20in%20Taplinx%20SDK%20to%20indicate%20where%20i%20implemented%20that%20hander%3F%20Is%20there%20a%20ios%20sample%20app%20like%20for%20Android%3F%20It%20would%20be%20very%20helpful.%20In%20case%20there%20is%20no%20such%20app%2C%20could%20someone%20share%20a%20code%20sample%20with%20full%20sdk%20initialization%20on%20ios%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1991368%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20Trouble%20implementing%20ios%20app%20using%20Taplinx%20SDK%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1991368%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F242019%22%20target%3D%22_blank%22%3E%40DamianD%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ESince%20your%20problem%20involves%20the%20level%20of%20code%20debugging%2C%20we%20do%20not%20have%20such%20a%20test%20environment%20as%20yours%2C%20so%20your%20problem%20needs%20to%20be%20debugged%20by%20you%2C%20say%20sorry%20for%20that.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1979204%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20Trouble%20implementing%20ios%20app%20using%20Taplinx%20SDK%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1979204%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3Ehi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F205266%22%20target%3D%22_blank%22%3E%40KaiLi%3C%2FA%3E%26nbsp%3B%20-%20unfortunately%20there%20is%20only%20swiftsourceinfo%20file%20inside%20Project%20folder%20and%20it%20is%20of%20no%20use%20to%20me.%20When%20i%20add%20libTapLinxLibrary.a%20to%20xcode%20app%20project%20(and%20set%20up%20search%20paths)%20during%20compilation%20i%20get%20error%3A%3CBR%20%2F%3E%2FUsers%2Fxxx%2FProjects%2Fxcodeproj%2Ffacilityapp%2FSampleTaplinxApp%2FSampleTaplinxApp%2FContentView.swift%3A9%3A8%20Compiled%20module%20was%20created%20by%20a%20different%20version%20of%20the%20compiler%20'5.10.0.13'%3B%20rebuild%20'TapLinxLibrary'%20and%20try%20again%3A%20%2FUsers%2Fxxx%2FProjects%2Fxcodeproj%2Ffacilityapp%2FSampleTaplinxApp%2FTapLinxLibrary2%2FTapLinxLibrary.swiftmodule%2Farm64-apple-ios.swiftmodule%5C%3C%2FP%3E%3CBR%20%2F%3E%3CP%3ECould%20you%20hint%20me%20at%20what%20to%20do%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1977032%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20Trouble%20implementing%20ios%20app%20using%20Taplinx%20SDK%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1977032%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3Ethanks%2C%20i%20will%20give%20it%20a%20try%20and%20let%20you%20know%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1975885%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20Trouble%20implementing%20ios%20app%20using%20Taplinx%20SDK%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1975885%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F242019%22%20target%3D%22_blank%22%3E%40DamianD%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EUnfortunately%2C%20there%20is%20not%20the%20dedicated%20sample%20for%20ios%2C%20but%20I%20think%20there%20should%20be%20something%20in%20SDK%20could%20refer%20to%2C%20like%3C%2FP%3E%0A%3CP%3Esdk_TapLinx_Library_iOS%5CTapLinxv1.0.1%5CTapLinxiOSSDK%5CTapLinxiOSSDK%5CTapLinxLibrary%5CTapLinxLibrary.swiftmodule%5CProject.%3CBR%20%2F%3EPlease%20try%20it.%3C%2FP%3E%3C%2FLINGO-BODY%3E