Posts

Post not yet marked as solved
9 Replies
11k 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)
Posted
by PerrBear.
Last updated
.