title: class "ViewController' has no initializers
body: <p>Im trying to build a simply sound app. I want a button press to play a clip pretty much like a soundboard. problem is when I go to build it says class "ViewController' has no initializers </p>
  
  <pre><code>import UIKit
  import AVFoundation
  
  
  class ViewController: UIViewController {
  
  
      var audioPlayer: AVAudioPlayer
  
      override func viewDidLoad() {
          super.viewDidLoad()
          // Do any additional setup after loading the view, typically from a nib.
      }
  
  
  
      override func didReceiveMemoryWarning() {
          super.didReceiveMemoryWarning()
          // Dispose of any resources that can be recreated.
      }
      @IBAction func playSound(sender:UIButton){
  
          // Set the sound file name &amp; extention
          let audioFilePath = Bundle.main.path(forResource: "emp_learntoknow", ofType: "mp3")
  
          if audioFilePath != nil {
  
              let audioFileUrl = URL.init(fileURLWithPath: audioFilePath!)
              do {
              audioPlayer = try AVAudioPlayer(contentsOf: audioFileUrl)
              audioPlayer.play()
  
  
          } catch {
              print("audio file is not found")
  
              }
          }
  }
  </code></pre>