I am trying to run an old project but its keep raising me this error. Here's my error:
$flutter run
Changing current working directory to: /Users/cemilfatih/Desktop/readyProjects/Elektron-2-main
Launching lib/main.dart on iPhone SE (3rd generation) in debug mode...
Running Xcode build...
Xcode build done. 8.5s
Failed to build iOS app
Error output from Xcode build:
2023-02-16 11:28:11.882 xcodebuild[8152:68293] Requested but did not find extension point with identifier Xcode.IDEKit.ExtensionSentinelHostApplications for extension
Xcode.DebuggerFoundation.AppExtensionHosts.watchOS of plug-in com.apple.dt.IDEWatchSupportCore
2023-02-16 11:28:11.883 xcodebuild[8152:68293] Requested but did not find extension point with identifier Xcode.IDEKit.ExtensionPointIdentifierToBundleIdentifier for
extension Xcode.DebuggerFoundation.AppExtensionToBundleIdentifierMap.watchOS of plug-in com.apple.dt.IDEWatchSupportCore
** BUILD FAILED **
Xcode's output:
Writing result bundle at path:
/var/folders/q7/vdz85krd0b16dmvx5q0h91l00000gn/T/flutter_tools.Z7UJv2/flutter_ios_build_temp_dirl5lgbb/temporary_xcresult_bundle
../../../src/flutter/.pub-cache/hosted/pub.dartlang.org/fluttertoast-8.1.3/lib/fluttertoast.dart:165:28: Error: Member not found: 'Overlay.maybeOf'.
var _overlay = Overlay.maybeOf(context!);
^^^^^^^
../../../src/flutter/.pub-cache/hosted/pub.dartlang.org/fluttertoast-8.1.3/lib/fluttertoast.dart:154:18: Error: The getter 'mounted' isn't defined for the class
'BuildContext'.
- 'BuildContext' is from 'package:flutter/src/widgets/framework.dart' ('../../../src/flutter/packages/flutter/lib/src/widgets/framework.dart').
Try correcting the name to the name of an existing getter, or defining a getter or field named 'mounted'.
if (context?.mounted != true) {
^^^^^^^
Failed to package /Users/cemilfatih/Desktop/readyProjects/Elektron-2-main.
Command PhaseScriptExecution failed with a nonzero exit code
note: Using new build system
note: Planning
note: Build preparation complete
note: Building targets in dependency order
Result bundle written to path:
/var/folders/q7/vdz85krd0b16dmvx5q0h91l00000gn/T/flutter_tools.Z7UJv2/flutter_ios_build_temp_dirl5lgbb/temporary_xcresult_bundle
Could not build the application for the simulator. Error launching application on iPhone SE (3rd generation).
I've tried to reset pod file, change the runner target but none of them worked.