Cloud Stack Ninja

Yes, I have the file included in the bundle for the target.

But this line

let path = Bundle.main.path(forResource: fileName, ofType: "wav")

will always be nil if fileName has accented chars in the file name, like

autenticaçãoemcartório
armação

Is there a way to solve that?

Can you confirm that as a bug?



Read more here: https://stackoverflow.com/questions/64415460/bundle-main-pathforresource-is-always-nil-for-files-with-accented-chars-in-the

Content Attribution

This content was originally published by Duck at Recent Questions - Stack Overflow, and is syndicated here via their RSS feed. You can read the original post over there.

%d bloggers like this: