iOS Installation using SPM

Integrating IDWise SDK via SPM

IDWise SDK can be installed using the Swift Package Manager. To integrate the IDWise SDK into your project via SPM, follow these steps:

  1. Go to your project and select Package Dependencies tab.
  1. Search for IDWise SPM Package in search bar using this git URL https://github.com/idwise/idwise-ios-sdk.git for IDWise Package. Always choose Dependency Rule as Branch.
  1. Click on Add Package and the IDWise package will be added to your project.

Integrating IDWise NFC SDK via SPM

IDWise NFC SDK can be installed using the Swift Package Manager. To integrate the IDWise NFC SDK into your project via SPM, follow these steps:

  1. Go to your project and select Package Dependencies tab.
  1. Search for IDWise NFC SPM Package in search bar using this git URL https://github.com/idwise/idwise-nfc-ios-sdk.git for IDWise NFC Package. Always choose Dependency Rule as Branch.
  1. Click on Add Package and the IDWise NFC package will be added to your project.

Permissions for NFC SDK

If you are using NFC SDK then you need to do some extra configurations for NFC to be enabled correctly in your application. Following are the steps to do these configurations:

  • Add Near Field Communication Tag Reading under the Capabilities tab for the project’s target:

    download (3)

  • Add the NFCReaderUsageDescription permission to your Info.plist file - it's needed to access the NFC hardware:

    <key>NFCReaderUsageDescription</key>
    <string>NFC tag to read NDEF messages</string>
    
  • Declare com.apple.developer.nfc.readersession.iso7816.select-identifiers a list of application identifiers that the app must be able to read according to ISO7816:

    <key>com.apple.developer.nfc.readersession.iso7816.select-identifiers</key>
    <array>
      <string>A0000002471001</string>
      <string>E80704007F00070302</string>
      <string>A000000167455349474E</string>
      <string>A0000002480100</string>
      <string>A0000002480200</string>
      <string>A0000002480300</string>
      <string>A00000045645444C2D3031</string>
    </array>