lundi 3 décembre 2018

Unit Test AVAudioRecorder or any other function that needs permission

I have written an app in which, I can record a voice. The problem is that every time I run the app and try to start recording the mac os asks me for a recording permission and, my test case fails.

Is there any solution that I can give this permission programmatically before running the test or anyone has any idea how to resolve this.

Aucun commentaire:

Enregistrer un commentaire