
How to Set Up the MTSCRA SDK
Setup for XCode Project
To add the MTSCRA SDK libraries to a custom software project in the XCode development environment, follow these steps:
Download the MTSCRA Demo app from MagTek.com.
Open your custom software project in XCode.
Open the MTSCRA Demo app folder in Finder.
Open the Lib subfolder.
Include the following files in your custom software project within XCode:
libMTSCRA.a
MTSCRA.h
Ensure the library search paths are set up correctly.
If you are writing an app that will connect to Bluetooth LE devices, see the additional steps section 3 Important Information About Bluetooth LE.
Clean, build, and run your custom software project to make sure the library imported correctly.) In your custom software, create an instance of MTSCRA. For examples, including how to register delegate functions in your app for callbacks, see the source code included with the MTSCRA Demo app and / or Appendix C Code Examples .
Begin using the features provided by the MTSCRA object’s methods. For details about these methods, see section 4 MTSCRA Functions
Setup for Swift Project
Add the following files to project, and setup the bridge header folder in build settings.
MTSCRA.H
MTSCRA-Bridge.h

Add libMTSCRA.a, in build phases->Link Binary with libraries, click ‘+’, then select Add Files and browse to libMTSCRA.a.

Add libc++.tbd in build phases->Link Binary with libraries, click ‘+’, then type “c++” in the filter area and pick libc++.tbd.

After adding those two libraries, this will be in the project.

Add the external accessory protocols into info file. In the screen shot, it adds iDynamo5 and iDynamo6 with default protocols. Add your custom protocol if different.

Last updated

