You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// This is the (very slightly abridged) output from updating the
857
+
// minimum version of the GoogleMaps dependency in
858
+
// google_maps_flutter_ios without updating the minimum iOS version to
859
+
// match, as an example of a misconfigured plugin, but with the paths
860
+
// modified to simulate a macOS plugin.
861
+
stdout:'''
862
+
Analyzing dependencies
863
+
864
+
Inspecting targets to integrate
865
+
Using `ARCHS` setting to build architectures of target `Pods-Runner`: (``)
866
+
Using `ARCHS` setting to build architectures of target `Pods-RunnerTests`: (``)
867
+
868
+
Fetching external sources
869
+
-> Fetching podspec for `Flutter` from `Flutter`
870
+
-> Fetching podspec for `google_maps_flutter_ios` from `.symlinks/plugins/google_maps_flutter_ios/macos`
871
+
872
+
Resolving dependencies of `Podfile`
873
+
CDN: trunk Relative path: CocoaPods-version.yml exists! Returning local because checking is only performed in repo update
874
+
CDN: trunk Relative path: Specs/a/d/d/GoogleMaps/8.0.0/GoogleMaps.podspec.json exists! Returning local because checking is only performed in repo update
875
+
[!] CocoaPods could not find compatible versions for pod "GoogleMaps":
876
+
In Podfile:
877
+
google_maps_flutter_ios (from `.symlinks/plugins/google_maps_flutter_ios/macos`) was resolved to 0.0.1, which depends on
878
+
GoogleMaps (~> 8.0)
879
+
880
+
Specs satisfying the `GoogleMaps (~> 8.0)` dependency were found, but they required a higher minimum deployment target.''',
881
+
),
882
+
);
883
+
884
+
awaitexpectLater(cocoaPodsUnderTest.processPods(
885
+
xcodeProject: projectUnderTest.macos,
886
+
buildMode:BuildMode.debug,
887
+
), throwsToolExit());
888
+
expect(
889
+
logger.errorText,
890
+
contains(
891
+
'The pod "GoogleMaps" required by the plugin "google_maps_flutter_ios" '
892
+
"requires a higher minimum macOS deployment version than the plugin's "
893
+
'reported minimum version.'
894
+
),
895
+
);
896
+
// The error should tell the user to contact the plugin author, as this
897
+
// case is hard for us to give exact advice on, and should only be
898
+
// possible if there's a mistake in the plugin's podspec.
899
+
expect(
900
+
logger.errorText,
901
+
contains(
902
+
'To build, remove the plugin "google_maps_flutter_ios", or contact '
903
+
"the plugin's developers for assistance.",
904
+
),
905
+
);
906
+
});
907
+
839
908
testUsingContext('throws if plugin requires higher minimum macOS version using "platform"', () async {
0 commit comments