skip to Main Content

When I try to build my flutter app for my iPhone through xcode I get this error
enter image description here

I’ve changed the iOS target to match in cocopods and In xcode but did not help, I’ve also tried reinstalling cocoapods incase It was the problem but to no help.

2

Answers


  1. This could be a pods related issue. Please try this

    //make sure you are in the ios folder
    $flutter clean 
    ...
    then
    $flutter pub get
    ///then initialise pods
    $pod init
    ..
    $pod install
    //Then build for ios
    
    Login or Signup to reply.
  2. Please run the following and try to re run your app

    rm Podfile.lock
    pod cache clean --all
    sudo arch -x86_64 pod install --repo-update
    pod repo update
    pod install
    

    It will take a while but this syncs your podfile by downloading all of your dependencies again. Sometimes happens after updating your mac’s OS or updating flutter.

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