Skip to content

Yash Patel

Problem Solver

  • Home
  • Projects
  • Planet Veracity
    • Youtube Playlists
    • Linux
      • Linux Command Line
      • Shell Scripting
    • iOS Development
  • Blog
    • Living
    • Software
    • Readings
    • Travel
  • Problem Solving
    • iOS
  • Me
    • About Me
    • Books I Have Read
    • Quotes

Category: iOS

AVAudioPlayer EXC_BAD_ACCESS

I was getting bug report from user(specifically ios 13.1) about my game TwoChoicez that the app was crashing and unable to start. The problem was that I was initializing the Audio Player the wrong way.

Wrong:

var player = AVAudioPlayer()

Right:

var player: AVAudioPlayer?

Author YashPosted on November 24, 2019November 24, 2019Categories iOSTags avaudioplayer, exc_bad_access, swift

Archives

Recent Post

  • Create Tab Bar Controller Programmatically Swift 5 Xcode 11 December 12, 2020
  • How to Create Tab Bar App in Swift 5 Xcode 11 December 9, 2020
  • How to Create WebView in Swift 5 Xcode 11 December 8, 2020
  • Swift UIPickerView Tutorial December 7, 2020
  • Swift UITableView with Custom Cells December 7, 2020
  • Home
  • Projects
  • Planet Veracity
    • Youtube Playlists
    • Linux
      • Linux Command Line
      • Shell Scripting
    • iOS Development
  • Blog
    • Living
    • Software
    • Readings
    • Travel
  • Problem Solving
    • iOS
  • Me
    • About Me
    • Books I Have Read
    • Quotes
Yash Patel Proudly powered by WordPress