skip to Main Content

https://ui.docs.amplify.aws/swift/connected-components/liveness

Here is the package dependencies used for my project

Here is the package dependencies used for my project

Here is the error i got when i try to upload my app to testflight

Here is the error i got when i try to upload my app to testflight

for now i have added NSSpeechRecognitionUsageDescription just for the sake of allowing my app to be uploaded to testflight Here is the description that i added even tho my app is not using the speech API

And i need to emphasize again, my app does not use any speech recognition API

Question:

  1. Do i really need to specify NSSpeechRecognitionUsageDescription in this case? And if yes, what description should i write?

[INFO].[Edited on 20231224]
[11:23 pm, Sunday, 24 December 2023, Coordinated Universal Time (UTC)]
[Purpose] Added search result image for ‘AWSPredictionsPlugin’ from ‘Amplify’ plugin

enter image description here

2

Answers


  1. Apple already answered your question.

    While your app might not use these APIs, a purpose string is still required.

    If your app doesn’t use it you need to find out which 3rd party is using it and why.

    If the package does now allow you to somehow exclude Speech Recognition you’ll have to decide if you want to add the setting or remove the package.

    I don’t see anything obvious in the documentation for Face Liveness so that is likely not the culprit.

    Login or Signup to reply.
  2. Looking at that list of packages, the Amplify repo contains a Predictions plugin that accesses iOS’s Speech methods as backups for when AWS services are unreachable:

    On iOS, we leverage Apple’s Core ML Vision Framework and Natural Language Framework to improve accuracy as well as support cases where your device is unable to reach AWS Services. For more information, see each individual use case.

    source

    While you have to import AWSPredictionsPlugin to use these functions in your own code, it’s possible that the whole package gets added to your binary – and so your app may appear to Apple’s analysis tools to contain NSSpeechRecognition-based code.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search