Flutter Desktop Podfile Missing (flutter run -d macOS)

1,456

The Podfile missing message may also appear when you have selected the command-line tools. In that case it can be fixed with

sudo xcode-select --switch /Applications/Xcode.app/Contents/Developer

That fixed it for me when I switched to Flutter 2.0. I also ran flutter create --platforms=macos . before, but that didn't fix it.

Share:
1,456
Midhilaj
Author by

Midhilaj

I started coding life when I was studying in higher secondary class. Then I started to develop the application with "Visual Studio 2010". Opensource event in Kochin university was a turning point in my life which helped me to realize the power of open source. Then I started to use Ubuntu which helped me to learn a lot of tools, programming language, and framework. When I was in the 3rd semester in computer science and engineering, our new teacher forced me to develop an android app. From then I started to code in Android and I developed an app for our college. After getting the reviews, I realized that my skill is in coding. I spend more time in coding and now I can say that I am a professional programmer. I developed more than 20 apps. I focused on e-commerce app development and succeeded in that field. I also got 3 clients in e-commerce and successfully developed apps for them. I develop the admin website using angular2 since it helps to develop the website without refreshing for every action. All server request is done in the background and user feel the website like desktop software and in the future, I can make it as desktop software by using Electron (at that time open cart and PrestaShop admin website will refresh and take more time while performing any actions). My first server-side programming language is PHP (Rest API jacwright/RestServer and Slim Framework). I use firebase to develop 95% of my native app (Java, SQLite) and website(they are providing web hosting with SSL for free and it is highly secure and we don't need to worry about server-side script and server performance). My e-commerce app has the necessary features and an admin panel for admin to manage product, orders, delivery time, home page listing, category and category images, text field colors, etc I also successfully implemented an online payment gateway (instamojo) in my e-commerce apps I also developed an e-commerce app with the Flutter (Dart,sqflite ) using Shopify Rest API and implemented google map custom location picker. Flutter is amazing. It takes only a few days to develop the app with flutter when compared to app development time with android java. My technical guru is Google and stack overflow. My knowledge of coding life is from Google and StackOverflow. StackOverflow helped me to solve my doubts and issues during coding, at any time. I use Gitlab rather than GitHub because for the private project we need to pay for GitHub and my projects are not fully open-source. Gitlab allows publishing private project without any fee https://in.linkedin.com/in/midhilaj Flutter developer

Updated on December 16, 2022

Comments

  • Midhilaj
    Midhilaj over 1 year

    flutter run -d macOS

    Downloading darwin-x64 tools...                                   107.0s
    Downloading darwin-x64-profile tools...                            69.7s
    Downloading darwin-x64-profile tools...                            23.6s
    Downloading darwin-x64-release tools...                            54.3s
    Downloading darwin-x64-release tools...                            20.4s
    

    Launching lib/main.dart on macOS in debug mode... Podfile missing


    When i run flutter run -d macOS code it showing Podfile missing and how to fix it?
    Mac Pro
    How to run mac desktop app using android studio?
    If it is not possible to run macOS app from android studio then which ide i need to use?

    • Ryosuke
      Ryosuke over 4 years
      is there a directory named macOS in your project?
    • Midhilaj
      Midhilaj over 4 years
      no,there is no folder with name macOS
    • Ryosuke
      Ryosuke over 4 years
      try this: flutter config --enable-macos-desktop and then in your project root: flutter create .
    • Ryosuke
      Ryosuke over 4 years
      Also you have to be in the master channel.
    • Midhilaj
      Midhilaj over 4 years
      I all ready run flutter config --enable-macos-desktop and it is not a new project it is an old project for android app
    • Ryosuke
      Ryosuke over 4 years
      yes even if it is an old project, flutter create . in the root of your project will create the macOS folder needed to run it on mac. Don't worry it wont touch your existing files. Also remember to run it in flutter project root and not in android folder.
    • Midhilaj
      Midhilaj over 4 years
      Ok, i wil try with this suggestions
    • Ryosuke
      Ryosuke over 4 years
      you can read more here
  • Alex Meuer
    Alex Meuer over 2 years
    This fixed it for me. Is there anything else I should be aware of when doing this? Is this change likely to break other things?
  • Mene
    Mene over 2 years
    No idea, never used XCode for anything but as a compiler for flutter 😅