Flutter のビルドエラー対策

Flutter 最新版に更新した時、既存プロジェクトがビルドに通れず、
以下のエラーが吐き出される

```ruby:
Failed to build iOS app
Error output from Xcode build:
↳
    ** BUILD FAILED **


Xcode's output:
↳
    /Users/vicky/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/image_picker-0.6.7+7/ios/Classes/FLTImagePickerPlugin.m:149:20: warning: 'UIAlertView' is deprecated: first deprecated in iOS 9.0 - UIAlertView is deprecated. Use UIAlertController with a preferredStyle of UIAlertControllerStyleAlert instead [-Wdeprecated-declarations]
        [[[UIAlertView alloc] initWithTitle:@"Error"
                       ^
    In module 'UIKit' imported from /Users/vicky/Documents/project1/ios/Pods/Target Support Files/image_picker/image_picker-prefix.pch:2:
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.1.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIAlertView.h:27:12: note: 'UIAlertView' has been explicitly marked deprecated here
    @interface UIAlertView : UIView
               ^
    1 warning generated.
    In file included from /Users/vicky/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/fluttertoast-4.0.1/ios/Classes/UIView+Toast.m:26:
    /Users/vicky/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/fluttertoast-4.0.1/ios/Classes/UIView+Toast.h:328:19: warning: empty paragraph passed to '@param' command [-Wdocumentation]
     @param sharedStyle
     ~~~~~~~~~~~~~~~~~^
    /Users/vicky/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/fluttertoast-4.0.1/ios/Classes/UIView+Toast.h:343:25: warning: empty paragraph passed to '@param' command [-Wdocumentation]
     @param allowTapToDismiss
     ~~~~~~~~~~~~~~~~~~~~~~~^
    /Users/vicky/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/fluttertoast-4.0.1/ios/Classes/UIView+Toast.h:343:9: warning: parameter 'allowTapToDismiss' not found in the function declaration [-Wdocumentation]
     @param allowTapToDismiss
            ^~~~~~~~~~~~~~~~~
    /Users/vicky/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/fluttertoast-4.0.1/ios/Classes/UIView+Toast.h:343:9: note: did you mean 'tapToDismissEnabled'?
     @param allowTapToDismiss
            ^~~~~~~~~~~~~~~~~
            tapToDismissEnabled
    /Users/vicky/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/fluttertoast-4.0.1/ios/Classes/UIView+Toast.h:362:20: warning: empty paragraph passed to '@param' command [-Wdocumentation]
     @param queueEnabled
     ~~~~~~~~~~~~~~~~~~^
    4 warnings generated.
    In file included from /Users/vicky/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/fluttertoast-4.0.1/ios/Classes/FluttertoastPlugin.m:2:
    /Users/vicky/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/fluttertoast-4.0.1/ios/Classes/UIView+Toast.h:328:19: warning: empty paragraph passed to '@param' command [-Wdocumentation]
     @param sharedStyle
     ~~~~~~~~~~~~~~~~~^
    /Users/vicky/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/fluttertoast-4.0.1/ios/Classes/UIView+Toast.h:343:25: warning: empty paragraph passed to '@param' command [-Wdocumentation]
     @param allowTapToDismiss
     ~~~~~~~~~~~~~~~~~~~~~~~^
    /Users/vicky/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/fluttertoast-4.0.1/ios/Classes/UIView+Toast.h:343:9: warning: parameter 'allowTapToDismiss' not found in the function declaration [-Wdocumentation]
     @param allowTapToDismiss
            ^~~~~~~~~~~~~~~~~
    /Users/vicky/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/fluttertoast-4.0.1/ios/Classes/UIView+Toast.h:343:9: note: did you mean 'tapToDismissEnabled'?
     @param allowTapToDismiss
            ^~~~~~~~~~~~~~~~~
            tapToDismissEnabled
    /Users/vicky/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/fluttertoast-4.0.1/ios/Classes/UIView+Toast.h:362:20: warning: empty paragraph passed to '@param' command [-Wdocumentation]
     @param queueEnabled
     ~~~~~~~~~~~~~~~~~~^
    /Users/vicky/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/fluttertoast-4.0.1/ios/Classes/FluttertoastPlugin.m:19:23: warning: unused variable 'viewController' [-Wunused-variable]
        UIViewController *viewController =
                          ^
    /Users/vicky/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/fluttertoast-4.0.1/ios/Classes/FluttertoastPlugin.m:70:21: warning: unused variable 'topPadding' [-Wunused-variable]
                CGFloat topPadding = window.safeAreaInsets.top;
                        ^
    /Users/vicky/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/fluttertoast-4.0.1/ios/Classes/FluttertoastPlugin.m:71:21: warning: unused variable 'bottomPadding' [-Wunused-variable]
                CGFloat bottomPadding = window.safeAreaInsets.bottom;
                        ^
    /Users/vicky/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/fluttertoast-4.0.1/ios/Classes/FluttertoastPlugin.m:48:19: warning: unused variable 'size' [-Wunused-variable]
            NSNumber *size = call.arguments[@"size"];
                      ^
    8 warnings generated.
    <module-includes>:1:9: note: in file included from <module-includes>:1:
    #import "Headers/FBAudienceNetwork.h"
            ^
    /Users/vicky/Documents/project1/ios/Pods/FBAudienceNetwork/Static/FBAudienceNetwork.framework/Headers/FBAudienceNetwork.h:31:9: note: in file included from /Users/vicky/Documents/project1/ios/Pods/FBAudienceNetwork/Static/FBAudienceNetwork.framework/Headers/FBAudienceNetwork.h:31:
    #import <FBAudienceNetwork/FBInstreamAdView.h>
            ^
    /Users/vicky/Documents/project1/ios/Pods/FBAudienceNetwork/Static/FBAudienceNetwork.framework/Headers/FBInstreamAdView.h:111:24: warning: 'FBInstreamAdView' is deprecated: Instream ads have been deprecated.
    - (void)adViewDidLoad:(FBInstreamAdView *)adView;
                           ^
    /Users/vicky/Documents/project1/ios/Pods/FBAudienceNetwork/Static/FBAudienceNetwork.framework/Headers/FBInstreamAdView.h:31:1: note: 'FBInstreamAdView' has been explicitly marked deprecated here
    FB_DEPRECATED_WITH_MESSAGE("Instream ads have been deprecated.")
    ^
    /Users/vicky/Documents/project1/ios/Pods/FBAudienceNetwork/Static/FBAudienceNetwork.framework/Headers/FBAdDefines.h:41:54: note: expanded from macro 'FB_DEPRECATED_WITH_MESSAGE'
    #define FB_DEPRECATED_WITH_MESSAGE(M) __attribute__((deprecated(M)))
                                                         ^
    <module-includes>:1:9: note: in file included from <module-includes>:1:
    #import "Headers/FBAudienceNetwork.h"
            ^
    /Users/vicky/Documents/project1/ios/Pods/FBAudienceNetwork/Static/FBAudienceNetwork.framework/Headers/FBAudienceNetwork.h:31:9: note: in file included from /Users/vicky/Documents/project1/ios/Pods/FBAudienceNetwork/Static/FBAudienceNetwork.framework/Headers/FBAudienceNetwork.h:31:
    #import <FBAudienceNetwork/FBInstreamAdView.h>
            ^
    /Users/vicky/Documents/project1/ios/Pods/FBAudienceNetwork/Static/FBAudienceNetwork.framework/Headers/FBInstreamAdView.h:120:23: warning: 'FBInstreamAdView' is deprecated: Instream ads have been deprecated.
    - (void)adViewDidEnd:(FBInstreamAdView *)adView;
                          ^
    /Users/vicky/Documents/project1/ios/Pods/FBAudienceNetwork/Static/FBAudienceNetwork.framework/Headers/FBInstreamAdView.h:31:1: note: 'FBInstreamAdView' has been explicitly marked deprecated here
    FB_DEPRECATED_WITH_MESSAGE("Instream ads have been deprecated.")
    ^
    /Users/vicky/Documents/project1/ios/Pods/FBAudienceNetwork/Static/FBAudienceNetwork.framework/Headers/FBAdDefines.h:41:54: note: expanded from macro 'FB_DEPRECATED_WITH_MESSAGE'
    #define FB_DEPRECATED_WITH_MESSAGE(M) __attribute__((deprecated(M)))
                                                         ^
    <module-includes>:1:9: note: in file included from <module-includes>:1:
    #import "Headers/FBAudienceNetwork.h"
            ^
    /Users/vicky/Documents/project1/ios/Pods/FBAudienceNetwork/Static/FBAudienceNetwork.framework/Headers/FBAudienceNetwork.h:31:9: note: in file included from /Users/vicky/Documents/project1/ios/Pods/FBAudienceNetwork/Static/FBAudienceNetwork.framework/Headers/FBAudienceNetwork.h:31:
    #import <FBAudienceNetwork/FBInstreamAdView.h>
            ^
    /Users/vicky/Documents/project1/ios/Pods/FBAudienceNetwork/Static/FBAudienceNetwork.framework/Headers/FBInstreamAdView.h:131:17: warning: 'FBInstreamAdView' is deprecated: Instream ads have been deprecated.
    - (void)adView:(FBInstreamAdView *)adView didFailWithError:(NSError *)error;
                    ^
    /Users/vicky/Documents/project1/ios/Pods/FBAudienceNetwork/Static/FBAudienceNetwork.framework/Headers/FBInstreamAdView.h:31:1: note: 'FBInstreamAdView' has been explicitly marked deprecated here
    FB_DEPRECATED_WITH_MESSAGE("Instream ads have been deprecated.")
    ^
    /Users/vicky/Documents/project1/ios/Pods/FBAudienceNetwork/Static/FBAudienceNetwork.framework/Headers/FBAdDefines.h:41:54: note: expanded from macro 'FB_DEPRECATED_WITH_MESSAGE'
    #define FB_DEPRECATED_WITH_MESSAGE(M) __attribute__((deprecated(M)))
                                                         ^
    <module-includes>:1:9: note: in file included from <module-includes>:1:
    #import "Headers/FBAudienceNetwork.h"
            ^
    /Users/vicky/Documents/project1/ios/Pods/FBAudienceNetwork/Static/FBAudienceNetwork.framework/Headers/FBAudienceNetwork.h:31:9: note: in file included from /Users/vicky/Documents/project1/ios/Pods/FBAudienceNetwork/Static/FBAudienceNetwork.framework/Headers/FBAudienceNetwork.h:31:
    #import <FBAudienceNetwork/FBInstreamAdView.h>
            ^
    /Users/vicky/Documents/project1/ios/Pods/FBAudienceNetwork/Static/FBAudienceNetwork.framework/Headers/FBInstreamAdView.h:141:25: warning: 'FBInstreamAdView' is deprecated: Instream ads have been deprecated.
    - (void)adViewDidClick:(FBInstreamAdView *)adView;
                            ^
    /Users/vicky/Documents/project1/ios/Pods/FBAudienceNetwork/Static/FBAudienceNetwork.framework/Headers/FBInstreamAdView.h:31:1: note: 'FBInstreamAdView' has been explicitly marked deprecated here
    FB_DEPRECATED_WITH_MESSAGE("Instream ads have been deprecated.")
    ^
    /Users/vicky/Documents/project1/ios/Pods/FBAudienceNetwork/Static/FBAudienceNetwork.framework/Headers/FBAdDefines.h:41:54: note: expanded from macro 'FB_DEPRECATED_WITH_MESSAGE'
    #define FB_DEPRECATED_WITH_MESSAGE(M) __attribute__((deprecated(M)))
                                                         ^
    <module-includes>:1:9: note: in file included from <module-includes>:1:
    #import "Headers/FBAudienceNetwork.h"
            ^
    /Users/vicky/Documents/project1/ios/Pods/FBAudienceNetwork/Static/FBAudienceNetwork.framework/Headers/FBAudienceNetwork.h:31:9: note: in file included from /Users/vicky/Documents/project1/ios/Pods/FBAudienceNetwork/Static/FBAudienceNetwork.framework/Headers/FBAudienceNetwork.h:31:
    #import <FBAudienceNetwork/FBInstreamAdView.h>
            ^
    /Users/vicky/Documents/project1/ios/Pods/FBAudienceNetwork/Static/FBAudienceNetwork.framework/Headers/FBInstreamAdView.h:148:34: warning: 'FBInstreamAdView' is deprecated: Instream ads have been deprecated.
    - (void)adViewWillLogImpression:(FBInstreamAdView *)adView;
                                     ^
    /Users/vicky/Documents/project1/ios/Pods/FBAudienceNetwork/Static/FBAudienceNetwork.framework/Headers/FBInstreamAdView.h:31:1: note: 'FBInstreamAdView' has been explicitly marked deprecated here
    FB_DEPRECATED_WITH_MESSAGE("Instream ads have been deprecated.")
    ^
    /Users/vicky/Documents/project1/ios/Pods/FBAudienceNetwork/Static/FBAudienceNetwork.framework/Headers/FBAdDefines.h:41:54: note: expanded from macro 'FB_DEPRECATED_WITH_MESSAGE'
    #define FB_DEPRECATED_WITH_MESSAGE(M) __attribute__((deprecated(M)))
                                                         ^
    <module-includes>:1:9: note: in file included from <module-includes>:1:
    #import "Headers/FBAudienceNetwork.h"
            ^
    /Users/vicky/Documents/project1/ios/Pods/FBAudienceNetwork/Static/FBAudienceNetwork.framework/Headers/FBAudienceNetwork.h:51:9: note: in file included from /Users/vicky/Documents/project1/ios/Pods/FBAudienceNetwork/Static/FBAudienceNetwork.framework/Headers/FBAudienceNetwork.h:51:
    #import <FBAudienceNetwork/FBAdSettingsBridge.h>
            ^
    /Users/vicky/Documents/project1/ios/Pods/FBAudienceNetwork/Static/FBAudienceNetwork.framework/Headers/FBAdSettingsBridge.h:39:87: warning: array parameter is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified)
    FB_EXPORT void FBAdSettingsBridgeSetDataProcessingOptions(char const *_Nonnull options[], int length);
                                                                                          ^
    /Users/vicky/Documents/project1/ios/Pods/FBAudienceNetwork/Static/FBAudienceNetwork.framework/Headers/FBAdSettingsBridge.h:39:87: note: insert '_Nullable' if the array parameter may be null
    FB_EXPORT void FBAdSettingsBridgeSetDataProcessingOptions(char const *_Nonnull options[], int length);
                                                                                          ^
    /Users/vicky/Documents/project1/ios/Pods/FBAudienceNetwork/Static/FBAudienceNetwork.framework/Headers/FBAdSettingsBridge.h:39:87: note: insert '_Nonnull' if the array parameter should never be null
    FB_EXPORT void FBAdSettingsBridgeSetDataProcessingOptions(char const *_Nonnull options[], int length);
                                                                                          ^
    <module-includes>:1:9: note: in file included from <module-includes>:1:
    #import "Headers/FBAudienceNetwork.h"
            ^
    /Users/vicky/Documents/project1/ios/Pods/FBAudienceNetwork/Static/FBAudienceNetwork.framework/Headers/FBAudienceNetwork.h:51:9: note: in file included from /Users/vicky/Documents/project1/ios/Pods/FBAudienceNetwork/Static/FBAudienceNetwork.framework/Headers/FBAudienceNetwork.h:51:
    #import <FBAudienceNetwork/FBAdSettingsBridge.h>
            ^
    /Users/vicky/Documents/project1/ios/Pods/FBAudienceNetwork/Static/FBAudienceNetwork.framework/Headers/FBAdSettingsBridge.h:40:95: warning: array parameter is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified)
    FB_EXPORT void FBAdSettingsBridgeSetDetailedDataProcessingOptions(char const *_Nonnull options[],
                                                                                                  ^
    /Users/vicky/Documents/project1/ios/Pods/FBAudienceNetwork/Static/FBAudienceNetwork.framework/Headers/FBAdSettingsBridge.h:40:95: note: insert '_Nullable' if the array parameter may be null
    FB_EXPORT void FBAdSettingsBridgeSetDetailedDataProcessingOptions(char const *_Nonnull options[],
                                                                                                  ^
    /Users/vicky/Documents/project1/ios/Pods/FBAudienceNetwork/Static/FBAudienceNetwork.framework/Headers/FBAdSettingsBridge.h:40:95: note: insert '_Nonnull' if the array parameter should never be null
    FB_EXPORT void FBAdSettingsBridgeSetDetailedDataProcessingOptions(char const *_Nonnull options[],
                                                                                                  ^
    /Users/vicky/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/facebook_audience_network-0.7.1/ios/Classes/FacebookAudienceNetworkNativeAd.swift:59:21: warning: 'FBAdIconView' is deprecated: This class will be removed in a future release. Use FBMediaView instead.
        var adIconView: FBAdIconView!
                        ^
    /Users/vicky/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/facebook_audience_network-0.7.1/ios/Classes/FacebookAudienceNetworkNativeAd.swift:164:13: warning: variable 'adType' was never mutated; consider changing to 'let' constant
            var adType: Int = self.params["ad_type"] as? Int ?? FANConstant.NATIVE_AD_TEMPLATE;
            ~~~ ^
            let
    /Users/vicky/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/facebook_audience_network-0.7.1/ios/Classes/FacebookAudienceNetworkNativeAd.swift:324:27: warning: 'FBAdIconView' is deprecated: This class will be removed in a future release. Use FBMediaView instead.
            self.adIconView = FBAdIconView.init(frame: nativeAdLayout.adIconRect)
                              ^
    /Users/vicky/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/facebook_audience_network-0.7.1/ios/Classes/FacebookAudienceNetworkNativeAd.swift:495:27: warning: 'FBAdIconView' is deprecated: This class will be removed in a future release. Use FBMediaView instead.
            self.adIconView = FBAdIconView.init(frame: nativeAdLayout.adIconRect)
                              ^
    /Users/vicky/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/facebook_audience_network-0.7.1/ios/Classes/FacebookAudienceNetworkNativeAd.swift:596:38: warning: cast from 'Error' to unrelated type 'String' always fails
            let errorStr: String = error as? String ?? "";
                                   ~~~~~ ^   ~~~~~~
    <module-includes>:1:9: note: in file included from <module-includes>:1:
    #import "Headers/FBAudienceNetwork.h"
            ^
    /Users/vicky/Documents/project1/ios/Pods/FBAudienceNetwork/Static/FBAudienceNetwork.framework/Headers/FBAudienceNetwork.h:31:9: note: in file included from /Users/vicky/Documents/project1/ios/Pods/FBAudienceNetwork/Static/FBAudienceNetwork.framework/Headers/FBAudienceNetwork.h:31:
    #import <FBAudienceNetwork/FBInstreamAdView.h>
            ^
    /Users/vicky/Documents/project1/ios/Pods/FBAudienceNetwork/Static/FBAudienceNetwork.framework/Headers/FBInstreamAdView.h:111:24: warning: 'FBInstreamAdView' is deprecated: Instream ads have been deprecated.
    - (void)adViewDidLoad:(FBInstreamAdView *)adView;
                           ^
    /Users/vicky/Documents/project1/ios/Pods/FBAudienceNetwork/Static/FBAudienceNetwork.framework/Headers/FBInstreamAdView.h:31:1: note: 'FBInstreamAdView' has been explicitly marked deprecated here
    FB_DEPRECATED_WITH_MESSAGE("Instream ads have been deprecated.")
    ^
    /Users/vicky/Documents/project1/ios/Pods/FBAudienceNetwork/Static/FBAudienceNetwork.framework/Headers/FBAdDefines.h:41:54: note: expanded from macro 'FB_DEPRECATED_WITH_MESSAGE'
    #define FB_DEPRECATED_WITH_MESSAGE(M) __attribute__((deprecated(M)))
                                                         ^
    <module-includes>:1:9: note: in file included from <module-includes>:1:
    #import "Headers/FBAudienceNetwork.h"
            ^
    /Users/vicky/Documents/project1/ios/Pods/FBAudienceNetwork/Static/FBAudienceNetwork.framework/Headers/FBAudienceNetwork.h:31:9: note: in file included from /Users/vicky/Documents/project1/ios/Pods/FBAudienceNetwork/Static/FBAudienceNetwork.framework/Headers/FBAudienceNetwork.h:31:
    #import <FBAudienceNetwork/FBInstreamAdView.h>
            ^
    /Users/vicky/Documents/project1/ios/Pods/FBAudienceNetwork/Static/FBAudienceNetwork.framework/Headers/FBInstreamAdView.h:120:23: warning: 'FBInstreamAdView' is deprecated: Instream ads have been deprecated.
    - (void)adViewDidEnd:(FBInstreamAdView *)adView;
                          ^
    /Users/vicky/Documents/project1/ios/Pods/FBAudienceNetwork/Static/FBAudienceNetwork.framework/Headers/FBInstreamAdView.h:31:1: note: 'FBInstreamAdView' has been explicitly marked deprecated here
    FB_DEPRECATED_WITH_MESSAGE("Instream ads have been deprecated.")
    ^
    /Users/vicky/Documents/project1/ios/Pods/FBAudienceNetwork/Static/FBAudienceNetwork.framework/Headers/FBAdDefines.h:41:54: note: expanded from macro 'FB_DEPRECATED_WITH_MESSAGE'
    #define FB_DEPRECATED_WITH_MESSAGE(M) __attribute__((deprecated(M)))
                                                         ^
    <module-includes>:1:9: note: in file included from <module-includes>:1:
    #import "Headers/FBAudienceNetwork.h"
            ^
    /Users/vicky/Documents/project1/ios/Pods/FBAudienceNetwork/Static/FBAudienceNetwork.framework/Headers/FBAudienceNetwork.h:31:9: note: in file included from /Users/vicky/Documents/project1/ios/Pods/FBAudienceNetwork/Static/FBAudienceNetwork.framework/Headers/FBAudienceNetwork.h:31:
    #import <FBAudienceNetwork/FBInstreamAdView.h>
            ^
    /Users/vicky/Documents/project1/ios/Pods/FBAudienceNetwork/Static/FBAudienceNetwork.framework/Headers/FBInstreamAdView.h:131:17: warning: 'FBInstreamAdView' is deprecated: Instream ads have been deprecated.
    - (void)adView:(FBInstreamAdView *)adView didFailWithError:(NSError *)error;
                    ^
    /Users/vicky/Documents/project1/ios/Pods/FBAudienceNetwork/Static/FBAudienceNetwork.framework/Headers/FBInstreamAdView.h:31:1: note: 'FBInstreamAdView' has been explicitly marked deprecated here
    FB_DEPRECATED_WITH_MESSAGE("Instream ads have been deprecated.")
    ^
    /Users/vicky/Documents/project1/ios/Pods/FBAudienceNetwork/Static/FBAudienceNetwork.framework/Headers/FBAdDefines.h:41:54: note: expanded from macro 'FB_DEPRECATED_WITH_MESSAGE'
    #define FB_DEPRECATED_WITH_MESSAGE(M) __attribute__((deprecated(M)))
                                                         ^
    <module-includes>:1:9: note: in file included from <module-includes>:1:
    #import "Headers/FBAudienceNetwork.h"
            ^
    /Users/vicky/Documents/project1/ios/Pods/FBAudienceNetwork/Static/FBAudienceNetwork.framework/Headers/FBAudienceNetwork.h:31:9: note: in file included from /Users/vicky/Documents/project1/ios/Pods/FBAudienceNetwork/Static/FBAudienceNetwork.framework/Headers/FBAudienceNetwork.h:31:
    #import <FBAudienceNetwork/FBInstreamAdView.h>
            ^
    /Users/vicky/Documents/project1/ios/Pods/FBAudienceNetwork/Static/FBAudienceNetwork.framework/Headers/FBInstreamAdView.h:141:25: warning: 'FBInstreamAdView' is deprecated: Instream ads have been deprecated.
    - (void)adViewDidClick:(FBInstreamAdView *)adView;
                            ^
    /Users/vicky/Documents/project1/ios/Pods/FBAudienceNetwork/Static/FBAudienceNetwork.framework/Headers/FBInstreamAdView.h:31:1: note: 'FBInstreamAdView' has been explicitly marked deprecated here
    FB_DEPRECATED_WITH_MESSAGE("Instream ads have been deprecated.")
    ^
    /Users/vicky/Documents/project1/ios/Pods/FBAudienceNetwork/Static/FBAudienceNetwork.framework/Headers/FBAdDefines.h:41:54: note: expanded from macro 'FB_DEPRECATED_WITH_MESSAGE'
    #define FB_DEPRECATED_WITH_MESSAGE(M) __attribute__((deprecated(M)))
                                                         ^
    <module-includes>:1:9: note: in file included from <module-includes>:1:
    #import "Headers/FBAudienceNetwork.h"
            ^
    /Users/vicky/Documents/project1/ios/Pods/FBAudienceNetwork/Static/FBAudienceNetwork.framework/Headers/FBAudienceNetwork.h:31:9: note: in file included from /Users/vicky/Documents/project1/ios/Pods/FBAudienceNetwork/Static/FBAudienceNetwork.framework/Headers/FBAudienceNetwork.h:31:
    #import <FBAudienceNetwork/FBInstreamAdView.h>
            ^


    Command PhaseScriptExecution failed with a nonzero exit code
    note: Using new build system
    note: Building targets in parallel
    note: Planning build
    note: Constructing build description

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

```

解決方法：

```ruby:
gem list --local | grep cocoapods
sudo gem uninstall (all the items in the list)
sudo rm -rf ~/.cocoapods
sudo gem install cocoapods
cd (PROJECT DIRECTORY)
flutter pub get 
# will auto create Podfile
# pod init
# (put cocoapod in podfile)
# pod install
rm -rf ~/.cocoapods/repos/trunk/
pod cache clean --all
pod install
```