-1

Failed to build iOS app Error (Xcode): ../../../Developer/flutter/packages/flutter/lib/src/material/data_table.dart:1164:41: Error: Member not found: 'Matrix4.identity'.

Could not build the application for the simulator. Error launching application on iPhone 14 Pro Max.

When i type flutter run the above error occurs on the default application without any configurations. I didn't get why the error occurs.

  • Try command Flutter clean then pub get and run again. – Vishal Zaveri Feb 27 '23 at 03:02
  • i already tried what you suggested but the error keeps on persisting. Its the default app of flutter but this error keeps showing and i didn't even change anything – Reinheart Marl Gatera Golis Feb 27 '23 at 03:24
  • Can you share repo link on my email so i can check. Check my email in profile. – Vishal Zaveri Feb 27 '23 at 05:01
  • What is your `flutter doctor` output? – Prerak Feb 27 '23 at 05:24
  • [✓] Flutter (Channel stable, 3.3.9, on macOS 13.2.1 22D68 darwin-arm, locale en-IN) [✓] Android toolchain - develop for Android devices (Android SDK version 33.0.0) [✓] Xcode - develop for iOS and macOS (Xcode 14.2) [✓] Chrome - develop for the web [✓] Android Studio (version 2021.3) [✓] VS Code (version 1.75.1) [✓] Connected device (3 available) – Vishal Zaveri Feb 27 '23 at 05:43
  • [✓] Flutter (Channel stable, 3.7.5, on macOS 13.2.1 22D68 darwin-x64, locale en-PH) [✓] Android toolchain - develop for Android devices (Android SDK version 33.0.2) [✓] Xcode - develop for iOS and macOS (Xcode 14.2) [✓] Chrome - develop for the web [✓] Android Studio (version 4.2) [✓] VS Code (version 1.75.1) [✓] Connected device (3 available) [!] HTTP Host Availability ✗ HTTP host "https://cocoapods.org/" is not reachable. Reason: Failed to connect to host in 10 seconds ! Doctor found issues in 1 category. – Reinheart Marl Gatera Golis Feb 27 '23 at 06:55
  • There is an error regarding cocoapods but i dont think it affects my run – Reinheart Marl Gatera Golis Feb 27 '23 at 06:56
  • I think in your system any internet connectivity issue. just verify internet connection before try flutter pub get because on first time all packages will download on your machine. – Vishal Zaveri Feb 27 '23 at 10:19
  • @VishalZaveri my connection is strong. This is the output when i run it on android emulator. Target kernel_snapshot failed: Exception FAILURE: Build failed with an exception. * Where: Script '/Users/lap052user/flutter/packages/flutter_tools/gradle/flutter.gradle' line: 1151 * What went wrong: Execution failed for task ':app:compileFlutterBuildDebug'. > Process 'command '/Users/lap052user/flutter/bin/flutter'' finished with non-zero exit value 1 – Reinheart Marl Gatera Golis Feb 28 '23 at 01:46
  • @VishalZaveri does the error occur due to flutter.gradle? – Reinheart Marl Gatera Golis Feb 28 '23 at 04:01
  • @VishalZaveri i solved the problem using flutter pub cache repair. – Reinheart Marl Gatera Golis Feb 28 '23 at 07:06
  • Ohh great. Just add your answer and close this questions so it will helps to others. Happy coding:) – Vishal Zaveri Feb 28 '23 at 15:59

2 Answers2

0

just run flutter pub cache repair, this error occurs due to corrupted resources etc.

-1

Try to run from Xcode or terminal with command flutter run