Post not yet marked as solved
Post marked as unsolved with 9 replies, 11,197 views
Due to autolayout issues, I converted a program to xCode 8 Beta and Swift 3.0. I am trying to play an audio sound bite. The fileName is in the base project directory. Bundle.main returns a valid path. I have also tried unwrapping. After the automatic conversion from the old version of Swift, the following code returns nil.let path = Bundle.main().pathForResource(fileName, ofType: nil)