0

After updating macOS to Catalina, Flutter project can't Build\Run and indicates this error:

enter image description here

  1. I tried to 'run' the project via xCode and it worked properly, but with AndroidStudio can't run the application

  2. on Android device project works fine

  3. Flutter (Channel beta, v1.9.1+hotfix.2, on Mac OS X 10.15)

  4. Xcode - develop for iOS and macOS (Xcode 10.2.1)

Vadim Kotov
  • 8,084
  • 8
  • 48
  • 62
Saeid
  • 2,261
  • 4
  • 27
  • 59

1 Answers1

2

Flutter updated to (Channel beta, v1.10.7, on Mac OS X 10.15) and the problem was resolved, But then maybe the following issues occurs:

1- Build error

enter image description here

If you encounter this error just update cocoapods:

sudo gem install -n /usr/local/bin cocoapods

This answer: Flutter Issues with MacOS 10.15 Catalina


2- Stuck at Installing and launching on iOS device

  1. Change flutter channel to master in Terminal

    flutter channel master
    
  2.  flutter upgrade
    
  3. (In my case) It was necessary to build and execute the project once

Community
  • 1
  • 1
Saeid
  • 2,261
  • 4
  • 27
  • 59
  • This did the trick. After the upgradation to catalina studio stopped detection of ios devices. I've tried to update android studio from stable channel to canary and cleaning the project. Nothing was working except this solution. – Harsh Patel Nov 04 '19 at 09:11