My flutter project will compile and run perfectly on Android and iOS from our development MacBooks. But it fails the build test on GitHub Workflows only for iOS:
Unhandled exception:
Null check operator used on a null value
#0 Context.embedFlutterFrameworks (file:///Users/runner/hostedtoolcache/flutter/stable-3.16.1-x64/packages/flutter_tools/bin/xcode_backend.dart:235:68)
#1 Context.run (file:///Users/runner/hostedtoolcache/flutter/stable-3.16.1-x64/packages/flutter_tools/bin/xcode_backend.dart:59:9)
#2 main (file:///Users/runner/hostedtoolcache/flutter/stable-3.16.1-x64/packages/flutter_tools/bin/xcode_backend.dart:17:5)
#3 _delayEntrypointInvocation.<anonymous closure> (dart:isolate-patch/isolate_patch.dart:295:33)
#4 _RawReceivePort._handleMessage (dart:isolate-patch/isolate_patch.dart:184:12)
Command PhaseScriptExecution failed with a nonzero exit code
My flutter project will compile and run perfectly on Android and iOS from our development MacBooks. But it fails the build test on GitHub Workflows only for iOS: