googlemaps / flutter-navigation-sdk

Apache License 2.0
17 stars 8 forks source link

Build hangs during "Run Script" phase when using google_maps_navigation package #156

Open OrKahilaPumba opened 1 week ago

OrKahilaPumba commented 1 week ago

Environment Details

API/Package: google_maps_navigation (utilizing Google Maps SDK for iOS) OS Type and Version: macOS Ventura 13.x on Mac M2 Library Version and Other Environment Information: Flutter Version: 3.24.3 Xcode Version: 15.4 CocoaPods Version: 1.12.1 google_maps_navigation Version: 0.3.0

Steps to reproduce

  1. Add the google_maps_navigation package to pubspec.yaml
  2. Attempt to build the iOS app

Stack trace

PhaseScriptExecution Run\ Script /Users/[username]/Library/Developer/Xcode/DerivedData/Runner-[unique_id]/Build/Intermediates.noindex/ArchiveIntermediates/Runner/IntermediateBuildFilesPath/Runner.build/Release-iphoneos/Runner.build/Script-[script_id].sh (in target 'Runner' from project 'Runner') cd /Users/[username]/navigation_test_app/ios /bin/sh -c /Users/[username]/Library/Developer/Xcode/DerivedData/Runner-[unique_id]/Build/Intermediates.noindex/ArchiveIntermediates/Runner/IntermediateBuildFilesPath/Runner.build/Release-iphoneos/Runner.build/Script-[script_id].sh

Additional Logs

[✓] Flutter (Channel stable, 3.24.3, on macOS Ventura 13.x [arm64], locale en-US) • Flutter version 3.24.3 on channel stable at /Users/[username]/flutter • Framework revision [revision] ([date]), [time] ago • Engine revision [engine_revision] • Dart version [dart_version] • DevTools version [devtools_version]

Observations: When building for a physical device, the first build hangs but the second build succeeds quickly, likely due to caching. The archive process always starts from scratch and hangs during the "Run Script" phase, preventing successful archiving. Removing the google_maps_navigation package from pubspec.yaml allows the build and archive processes to complete successfully. The issue seems specific to the google_maps_navigation package.

Request

Could you please assist in identifying why the inclusion of the google_maps_navigation package causes the build to hang during the "Run Script" phase on iOS? Any guidance or suggestions would be greatly appreciated.

Thanks!

illuminati1911 commented 1 week ago

Thanks for the issue @OrKahilaPumba!

We'll take a look.