title: Unable to run flutter after audio players package import
body: <p>I imported following sound package from flutter packages.</p>
  <blockquote>
  <p>audioplayers: ^0.12.1</p>
  </blockquote>
  <p>It threw errors saying I needed to install some things. Based on the error messages, I ran following commands.</p>
  <blockquote>
  <p>brew install cocoa</p>
  <p>pods pod setup</p>
  </blockquote>
  <p>The setup was completed successfully.</p>
  <p>It started throwing errors when I tried to run my application after this. The app is nothing but a stateless widget with an empty MaterialApp() widget. This was working fine before I did the above installs.</p>
  <p>I tried removing the audioplayers dependencies but the error persists. Trying to rebuild and restart my IDE doesn't help. Please advice whats wrong. I don't get why the error persists even after removing the dependency. I am using a Mac if that matters. Please advice. Thanks.</p>
  <p>Error Log:</p>
  <pre><code>Launching lib/main.dart on iPhone X in debug mode...
  Running pod install...
  Running Xcode build...
  Xcode build done.                                            1.9s
  Failed to build iOS app
  Error output from Xcode build:
  ↳
      ** BUILD FAILED **
  
  
  Xcode's output:
  ↳
      === BUILD TARGET path_provider OF PROJECT Pods WITH CONFIGURATION Debug ===
      /Users/myusername/.pub-cache/hosted/pub.dartlang.org/audioplayers-0.12.1/ios/Classes/AudioplayersPlugin.m:232:5: error: use of undeclared identifier 'AVAudioSessionCategory'; did you mean 'AVAudioSessionCategoryRecord'?
          AVAudioSessionCategory category;
          ^~~~~~~~~~~~~~~~~~~~~~
          AVAudioSessionCategoryRecord
      In module 'AVFoundation' imported from /Users/myusername/.pub-cache/hosted/pub.dartlang.org/audioplayers-0.12.1/ios/Classes/AudioplayersPlugin.m:4:
      /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.2.sdk/System/Library/Frameworks/AVFoundation.framework/Frameworks/AVFAudio.framework/Headers/AVAudioSession.h:642:28: note: 'AVAudioSessionCategoryRecord' declared here
      AVF_EXPORT NSString *const AVAudioSessionCategoryRecord;
                                 ^
      /Users/myusername/.pub-cache/hosted/pub.dartlang.org/audioplayers-0.12.1/ios/Classes/AudioplayersPlugin.m:232:27: error: expected ';' after expression
          AVAudioSessionCategory category;
                                ^
                                ;
      /Users/myusername/.pub-cache/hosted/pub.dartlang.org/audioplayers-0.12.1/ios/Classes/AudioplayersPlugin.m:232:28: error: use of undeclared identifier 'category'
          AVAudioSessionCategory category;
                                 ^
      /Users/myusername/.pub-cache/hosted/pub.dartlang.org/audioplayers-0.12.1/ios/Classes/AudioplayersPlugin.m:234:9: error: use of undeclared identifier 'category'
              category = AVAudioSessionCategoryAmbient;
              ^
      /Users/myusername/.pub-cache/hosted/pub.dartlang.org/audioplayers-0.12.1/ios/Classes/AudioplayersPlugin.m:236:9: error: use of undeclared identifier 'category'
              category = AVAudioSessionCategoryPlayback;
              ^
      /Users/myusername/.pub-cache/hosted/pub.dartlang.org/audioplayers-0.12.1/ios/Classes/AudioplayersPlugin.m:239:34: error: use of undeclared identifier 'category'
                          setCategory: category
                                       ^
      /Users/myusername/.pub-cache/hosted/pub.dartlang.org/audioplayers-0.12.1/ios/Classes/AudioplayersPlugin.m:232:5: warning: expression result unused [-Wunused-value]
          AVAudioSessionCategory category;
          ^~~~~~~~~~~~~~~~~~~~~~
      1 warning and 6 errors generated.
  
  Could not build the application for the simulator.
  Error launching application on iPhone X.
  </code></pre>