2

Not able to build and run any flutter app on iOS simulator using the command flutter run, it shows the error code as shown below,

Error code

Md. Yeasin Sheikh
  • 54,221
  • 7
  • 29
  • 56
Harshul Nanda
  • 27
  • 1
  • 5

1 Answers1

1

Can you please take a look at the correct answer here:

Xcode 10.2.1 Command PhaseScriptExecution failed with a nonzero exit code

Răzvan Puiu
  • 671
  • 1
  • 6
  • 24
  • 1
    If the above still doesn't work, Run flutter pub upgrade, flutter pub get in the project folder Delete podfile.lock in ios folder of the project Run cd ios, pod repo update, pod install in the project folder – Răzvan Puiu Jul 08 '22 at 14:56
  • 2
    If the above 2 still don't work: Simulator -> Device -> Erase all Content and Settings... then Simulator -> Device -> Restart – Răzvan Puiu Jul 08 '22 at 14:58
  • All the solutions you provided didn't work. I exactly followed the solutions provided by you but t's still showing me the same error. – Harshul Nanda Jul 08 '22 at 19:12
  • This problem started when the I somehow deleted the CocoaPods file from my Mac. But I re-downloaded the CocoaPods but it still shows me the same error. – Harshul Nanda Jul 08 '22 at 19:14
  • 1
    Have you deleted the podfile.lock in ios folder of the project then: Run cd ios, pod repo update, pod install in the project folder after re downloading the cocoapods? – Răzvan Puiu Jul 14 '22 at 09:37
  • did that, but still not working – Harshul Nanda Jul 14 '22 at 15:52
  • 1
    Another solution from SO: Completely turn off Bluetooth. in ios/ folder of your project, change Podfile to platform :ios, '12.0' Run pod deintegrate in Terminal inside the ios/ folder of your project. Run pod install --repo-update in your ios/ folder https://solveforums.msomimaktaba.com/threads/solved-flutter-for-ios-run-build-but-not-archive.699314/ – Răzvan Puiu Jul 15 '22 at 16:03
  • 1
    Sorry to hear this... There's also this thread, maybe check it if you haven't tried everything from there. https://stackoverflow.com/questions/71320584/flutter-build-ios-got-error-requested-but-did-not-find-extension-point-with-ide – Răzvan Puiu Jul 16 '22 at 12:41
  • 1
    I've edited my answer with a different solution. Can you please try that aswell? – Răzvan Puiu Jul 16 '22 at 13:53