gpt4 book ai didi

ios - 将flutter升级到最新版本后,无法构建iOS项目

转载 作者:行者123 更新时间:2023-12-03 03:48:17 26 4
gpt4 key购买 nike

将Flutter升级到最新版本后,我遇到了构建错误。
Xcode也已更新到最新版本,因此是用于Firebase的pubspec软件包。
当我执行构建时,我遇到以下错误是错误的日志

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.
我尝试了稳定通道 flutter channel stable,然后返回 flutter channel master,但它也没有解决问题。请进一步指导解决问题

最佳答案

修复它,这是我遇到最后一个错误后的命令列表

rm -rf ~/.cocoapods/repos/trunk/
pod install
(得到另一个错误)
pod cache clean --all
pod install
(得到另一个错误)
rm -rf ~/.cocoapods/repos/trunk/
pod install
然后它起作用了
因此,从我开始遇到的问题到现在,这里所有的命令似乎都使其起作用。
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)
pod init
(put cocoapod in podfile)
pod install
rm -rf ~/.cocoapods/repos/trunk/
pod cache clean --all
pod install

关于ios - 将flutter升级到最新版本后,无法构建iOS项目,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/64726063/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com