Flutter Amplify S3においてUnknown Errorが出る場合の原因と解決策の1つ

現象

Flutter Amplify でAWS S3に接続時 (getUrl, uploadFile等)、以下のエラーが出力される。

Unhandled Exception: StorageException(message: Unexpected error occurred with message: An unknown error occurred, recoverySuggestion: This should not happen. There is a possibility that there is a bug if this error persists. Please take a look at https://github.com/aws-amplify/amplify-ios/issues to see if there are any existing issues that match your scenario, and file an issue with the details of the bug if there isn't.

該当コード例

GetUrlResult urlResult = await Amplify.Storage.getUrl(key: key);

環境

pubspec.yaml
  amplify_core: ^0.6.11
  amplify_flutter: ^0.6.11
  amplify_auth_cognito: ^0.6.11
  amplify_storage_s3: ^0.6.11
  amplify_api: ^0.6.11
Flutterバージョン
Flutter 3.3.9 • channel stable • https://github.com/flutter/flutter.git
Framework • revision b8f7f1f986 (8 weeks ago) • 2022-11-23 06:43:51 +0900
Engine • revision 8f2221fbef
Tools • Dart 2.18.5 • DevTools 2.15.0

原因

ios/Podfile

platform :ios, '11.0'

これを、コメントアウトすることでUnknown Errorは解消されました。
元々自動生成時に9.0に固定されていたものを、一部ライブラリ動作のために11.0に固定しており、環境リセット時にも削除せずに残しておいたものですが、現行のFlutterバージョンだとデフォルトでコメントアウトになっているようですね。
上にあるコメントの通り、コメントアウトするとプロジェクトのグローバルプラットフォームが適用されます。

あくまで数あるUnknown Errorの1つの現象と解決策ですが、参考までに。