Skip to content

Latest commit

 

History

History
200 lines (96 loc) · 8.29 KB

README.md

File metadata and controls

200 lines (96 loc) · 8.29 KB

The Zebra RFID SDK for iOS enables MFi-enabled devices to interface with the RFD8500, RFD40, and RF90 via its Bluetooth interface. The Zebra RFID SDK provides a powerful set of APIs that use directly the ZETI (Zebra Easy Text Interface) exclusively created to take full advantage of the RFD8500, RFD40, and RF90 performance, functionality, and versatility. The SDK also contains the Zebra RFID Mobile application that can be used as a reference to develop new applications or to port existing applications to take advantage of the RFID features.

Configure Swift Package Manager - SPM (Rfid_iOS_SDK) in your iOS project.

1. Go to the "Add Package" Interface

In Xcode, select your project from the Project Navigator (the folder icon on the left). Now, in the main window, ensure the project file (with the .xcodeproj extension) is selected. Click on the "Package Dependencies" tab in the project settings. You’ll see a "+" button at the bottom of the dependencies list. Click on this "+" button.

Screenshot 2024-08-16 at 9 46 06 AM

Select Add Package Dependencies

Screenshot 2024-08-16 at 9 52 07 AM

2. Search for the Package or Enter the Repository URL

A new window titled "Add Package" will appear. In the search bar, Paste the Git repository URL for the package

https://github.com/ZebraDevs/alt-rfid-ios-sdk

image

3. Add Package to Your Target

Xcode will now fetch the package. After that, you’ll be asked to confirm which target(s) the package should be linked to. Typically, this will be your app's target. Select your target(s) and click Add Package.

image

image

image

4. Import and Use the Package

After adding the package, you can start using it in your project. In your Swift files, import the package's module by adding the import statement:

import ZebraScannerFramework

import ZebraRfidSdkFramework

image

Note :

To Remove existing framework: For existing 123RFID iOS projects that are using previous versions of the framework without Swift Package Manager (SPM), please complete steps 1 to 9 in the "Setup Cocoa-Pods in Existing 123RFID iOS Project" guide to remove the current framework. You can find these steps here: Setup Cocoa-Pods in Existing 123RFID iOS Project.

Once you’ve completed step 9, follow the instructions to set up SPM integration.

Configure Cocoapods (Rfid_iOS_SDK) in your iOS project.

1. Start a new project in Xcode, then open a terminal, navigate to the project's directory, and enter 'pod init' to generate the Podfile. Verify that the Podfile has been created.

.

image

.

image

.

image

2. Open the Podfile and add the following two lines to it and save the pod file

pod 'ZebraRfidiOSSdk', :git => 'https://github.com/ZebraDevs/alt-rfid-ios-sdk.git', :branch => ‘main’

pod 'ZebraBarcodeiOSSdk', :git => 'https://github.com/ZebraDevs/alt-rfid-ios-sdk.git', :branch => ‘main'

image

3. Type 'Pod install'

image

4. After pod install in navigate to your project and open “yourProjectName.xcworkspace”

image

5. Now you can view the Pods section with two frameworks listed under it.

  1. ZebraScannerFramework.xcframework
  2. ZebraRfidSdkFramework.xcframework

.

image . Screenshot 2024-06-20 at 11 08 40 AM

6. Now you can import the headers files for ZebraScannerFramework and ZebraRfidSdkFramework.

image

7. Now you can import the headers files for ZebraScannerFramework and ZebraRfidSdkFramework.

Screenshot 2024-06-20 at 11 15 26 AM

Note :

if you got any sandbox resync isssue,

image

Please Set No for User Script Sandboxing

image

Setup Cocoa-Pods in Existing 123RFID iOS Project

1. Remove the existing ‘Framework’ folder.

.

image

.

image

2. Navigate to the project location via the terminal.

image

3. Enter the command ‘pod init’. This will create a PodFile inside the project.

image

4. Open the PodFile and enter the following two lines.

pod 'ZebraRfidiOSSdk', :git => 'https://github.com/ZebraDevs/alt-rfid-ios-sdk.git', :branch => ‘main’

pod 'ZebraBarcodeiOSSdk', :git => 'https://github.com/ZebraDevs/alt-rfid-ios-sdk.git', :branch => ‘main'

image

5. Save the PodFile and close it.

6. In the terminal enter ‘pod install’.

image

7. Open the ‘RFIDDemoApp.xcworkspace’ project..

image

8. Navigate to Project Settings → General and remove the two previously added frameworks before configuring the Pod.

.

image

. image

9. Go to Build Settings  Framework Search Paths and delete the existing paths.

image

10. Then, add the below two paths

  1. ${PODS_XCFRAMEWORKS_BUILD_DIR}/ZebraBarcodeiOSSdk

  2. ${PODS_XCFRAMEWORKS_BUILD_DIR}/ZebraRfidiOSSdk

image

11. Clean and Build the Project.