skip to Main Content

I have flutter’s app for iOS. It is working on device. but I cant run this on simulator. I have this error:

/Users/admin/StudioProjects/Cvetovik_app/ios/Runner/GeneratedPluginRegistrant.m:12:9: Module 'audio_session' not found

enter image description here

But I don’t use this plugin audio_session. This is my architectures properties:

enter image description here

how do I fix this? I need to test the application on a simulator

2

Answers


  1. First Open runner.xcworkspace not .xcodeproj

    Hope its work for you

    Try to reinstall Pod

    Delete Pods folders and run

    flutter clean 
    flutter pub get
    

    in ios folder /

    pod init
    pod deintegrate
    pod install
    
    Login or Signup to reply.
  2. See the response from GirlWhoCode as it worked for me too. I wanted to add some context in addition to my comment in her answer because this question seems to cause many people problems and it can have many different solutions.

    My problem was the same as this question’s: Module not found. For me, it was with flutter_inappwebview.

    The first fix I made was installing cocoapods. Many Flutter plugins may use it. You can Google for how to do this. It looked simple, but when I tried to install cocoapods on my Mac, I was told I needed to update Ruby (which is installed by default). This threw additional errors, and ultimately I found you can install cocoapods through homebrew instead.

    Once cocoapods was installed, I could run the "pod" commands in the answer by GirlWhoCode.

    When you run them in order, after "pod install" you will see multiple lines saying "Installing […]" and finally "Pods installation complete!" If you see this, then you will be able to run your app in Xcode!

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search