Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

prepareToRecord failed #27

Open
yonigo opened this issue May 18, 2016 · 2 comments
Open

prepareToRecord failed #27

yonigo opened this issue May 18, 2016 · 2 comments

Comments

@yonigo
Copy link

yonigo commented May 18, 2016

I'm getting prepareToRecord failed on ios 9.3.

The file path where it is trying to be saved is: var/mobile/Containers/Data/Application/C9BC7E3A-6030-4251-BBE7-AC19A74E762A/Library/NoCloud/76DB73CC-9F88-4304-8021-4D71C71A597B.m4a

@tddawson
Copy link

tddawson commented May 5, 2017

I'm having the same issue. Is there a fix or a problem on my end to be aware of?

@tddawson
Copy link

tddawson commented May 6, 2017

For anyone else that runs into this, I fixed it by adding a line to create the folder(s) necessary for it to save. I added it to AudioRecorderAPI.m right before the comment "Create a new dated file"

// Create folder if necessary
[[NSFileManager defaultManager] createDirectoryAtPath:RECORDINGS_FOLDER withIntermediateDirectories:YES attributes:nil error:NULL];

If more people have this problem than yonigo and I, it may be worth adding to the repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants