[英]trying to run flutter app for ios , I get errors related to firebase
Running "flutter pub get" in salon_apps... Launching lib/main.dart on iPhone 13 in debug mode... Running pod install... Running Xcode build... Xcode build done.在 salon_apps 中运行“flutter pub get”...在 iPhone 13 上以调试模式启动 lib/main.dart...运行 pod install...运行 Xcode build...Xcode 构建完成。 20.3s Failed to build iOS app Error output from Xcode build: ↳ objc[23537]: Class AMSupportURLConnectionDelegate is implemented in both /usr/lib/libauthinstall.dylib (0x1fe72bb78) and /System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x10cde02c8). 20.3s Failed to build iOS app Error output from Xcode build: ↳ objc[23537]: Class AMSupportURLConnectionDelegate is implemented in both /usr/lib/libauthinstall.dylib (0x1fe72bb78) and /System/Library/PrivateFrameworks/MobileDevice.framework/Versions/ A/移动设备 (0x10cde02c8)。 One of the two will be used.将使用两者之一。 Which one is undefined.哪一个是未定义的。 objc[23537]: Class AMSupportURLSession is implemented in both /usr/lib/libauthinstall.dylib (0x1fe72bbc8) and /System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x10cde0318). objc[23537]: Class AMSupportURLSession 在 /usr/lib/libauthinstall.dylib (0x1fe72bbc8) 和 /System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x10cde0318) 中实现。 One of the two will be used.将使用两者之一。 Which one is undefined.哪一个是未定义的。 --- xcodebuild: WARNING: Using the first of multiple matching destinations: { platform:iOS Simulator, id:dvtdevice-DVTiOSDeviceSimulatorPlaceholder-iphonesimulator:placeholder, name:Any iOS Simulator Device } { platform:iOS Simulator, id:AEEE8629-E5E5-4455-9D69-FE6A529C62A5, OS:15.2, name:iPad (9th generation) } { platform:iOS Simulator, id:7F791AA0-FF90-46BD-A93C-C267D272E340, OS:15.2, name:iPad Air (4th generation) } { platform:iOS Simulator, id:22DC11F5-FAFC-491B-92A3-BA492FF06F92, OS:15.2, name:iPad Pro (9.7-inch) } { platform:iOS Simulator, id:33A914C7-AD42-4AD7-9A8D-E8A64DA8835B, OS:15.2, name:iPad Pro (11-inch) (3rd generation) } { platform:iOS Simulator, id:85209AC3-C952-438C-A55D-B92758BBA03D, OS:15.2, name:iPad Pro (12.9-inch) (5th generation) } { platform:iOS Simulator, id:D1E1133B-AAF8-47B4-ACD2-54739768788E, OS:15.2, name:iPad --- xcodebuild:警告:使用多个匹配目的地中的第一个:{平台:iOS模拟器,id:dvtdevice-DVTiOSDeviceSimulatorPlaceholder-iphonesimulator:占位符,名称:任何iOS模拟器设备}{平台:iOS模拟器,id:AEEE8629-E5E5E 4455-9D69-FE6A529C62A5, OS:15.2, name:iPad (9th generation) } { platform:iOS Simulator, id:7F791AA0-FF90-46BD-A93C-C267D272E340, OS:15.2, name:8810398120 (th generation) {Air}平台:iOS 模拟器,id:22DC11F5-FAFC-491B-92A3-BA492FF06F92,操作系统:15.2,名称:iPad Pro(9.7 英寸)} { 平台:iOS 模拟器,id:33A914C7-AD45A-4OSD883A-9 :15.2, name:iPad Pro (11-inch) (3rd generation) } { platform:iOS Simulator, id:85209AC3-C952-438C-A55D-B92758BBA03D, OS:15.2, name:iPad Pro (12.9-inch)一代)}{平台:iOS模拟器,ID:D1E1133B-AAF8-47B4-ACD2-54739768788E,操作系统:15.2,名称:iPad mini (6th generation) } { platform:iOS Simulator, id:26AAA556-202C-4E6D-BA0F-79DC0FD44764, OS:15.2, name:iPhone 8 } { platform:iOS Simulator, id:98991B2A-4AE3-4578-94C5-30F8A3170FCD, OS:15.2, name:iPhone 8 Plus } { platform:iOS Simulator, id:A0B36DC0-A8C4-4E02-8D63-222A68EF67E2, OS:15.2, name:iPhone 11 } { platform:iOS Simulator, id:B50F8EE2-B8D6-4B9F-B876-2AB6F138497B, OS:15.2, name:iPhone 11 Pro } { platform:iOS Simulator, id:85F4C905-DFA6-4472-BEAE-6EF4B664EAF7, OS:15.2, name:iPhone 11 Pro Max } { platform:iOS Simulator, id:AC0426DD-EA39-4810-97E2-A77F1C21C0BB, OS:15.2, name:iPhone 12 } { platform:iOS Simulator, id:70380FBC-8673-424B-923D-C20FC872B6DC, OS:15.2, name:iPhone 12 Pro } { platform:iOS Simulator, id:B9CD3E5B-7E85-4C25-8799-905F8F5E9BA2, OS:15.2, name:iPhone 12 Pro Max } { platform:iOS Simulator, id:2DE367EF-044B-46F3-BEE2-EBDF40634661, OS:15.2, name:iPhone 12 mini } { platfo mini(第 6 代)} { 平台:iOS 模拟器,id:26AAA556-202C-4E6D-BA0F-79DC0FD44764,OS:15.2,名称:iPhone 8 } { 平台:iOS 模拟器,id:98991B2A-4AE3-4578-98D3-18D3-15C5 , 操作系统:15.2, 名称:iPhone 8 Plus } { 平台:iOS 模拟器, id:A0B36DC0-A8C4-4E02-8D63-222A68EF67E2, 操作系统:15.2, 名称:iPhone 11 } { 平台:iOS 模拟器, id:B50F865-B8EE2-B50D865218 4B9F-B876-2AB6F138497B,操作系统:15.2,名称:iPhone 11 Pro } { 平台:iOS 模拟器,id:85F4C905-DFA6-4472-BEAE-6EF4B664EAF7,操作系统:15.2,名称:iPhone 11 Pro Max } { 平台:888621822 , id:AC0426DD-EA39-4810-97E2-A77F1C21C0BB, OS:15.2, name:iPhone 12 } { platform:iOS Simulator, id:70380FBC-8673-424B-923D-C20FC872B6DC, OS:15.2, name:iPhone 12} { 平台:iOS 模拟器,id:B9CD3E5B-7E85-4C25-8799-905F8F5E9BA2,OS:15.2,名称:iPhone 12 Pro Max } { 平台:iOS 模拟器,id:2DE367EF-044B-46F3-BEE2-OS:4165.42063 , 名称:iPhone 12 mini } { 平台rm:iOS Simulator, id:95294415-EEBF-4CE1-9A96-E14BC819F345, OS:15.2, name:iPhone 13 } { platform:iOS Simulator, id:15C90A9C-AAF3-462F-88D1-A36DAF6C1139, OS:15.2, name:iPhone 13 Pro } { platform:iOS Simulator, id:B2A6CE69-F3FF-4C4D-8296-E8D3AC23FD0F, OS:15.2, name:iPhone 13 Pro Max } { platform:iOS Simulator, id:5B06FEBA-5DC9-4ECE-8DFC-54FB86D370DE, OS:15.2, name:iPhone 13 mini } { platform:iOS Simulator, id:5E3087DA-2F07-4AD0-A9EE-E9A185B89260, OS:15.2, name:iPhone SE (2nd generation) } { platform:iOS Simulator, id:D1480C80-168C-4BB1-B20C-D11F8BE6AA10, OS:15.2, name:iPod touch (7th generation) } { platform:macOS, arch:arm64, variant:Designed for [iPad,iPhone], id:00008103-001A30860A88801E } { platform:iOS, id:dvtdevice-DVTiPhonePlaceholder-iphoneos:placeholder, name:Any iOS Device } ** BUILD FAILED ** rm:iOS 模拟器, id:95294415-EEBF-4CE1-9A96-E14BC819F345, OS:15.2, name:iPhone 13 } { platform:iOS 模拟器, id:15C90A9C-AAF3-462F-88D1-A16DAF3-462F-88D1-A16DAF6C1,OS:16DAF6C1 iPhone 13 Pro } { 平台:iOS 模拟器,id:B2A6CE69-F3FF-4C4D-8296-E8D3AC23FD0F,OS:15.2,名称:iPhone 13 Pro Max } { 平台:iOS 模拟器,id:5B06FEBA-5DC9-4ECE-8DFC6DBDE-54FD0F , OS:15.2, name:iPhone 13 mini } { platform:iOS Simulator, id:5E3087DA-2F07-4AD0-A9EE-E9A185B89260, OS:15.2, name:iPhone SE (2nd generation) } { platform:iOS Simulator, id: D1480C80-168C-4BB1-B20C-D11F8BE6AA10, OS:15.2, name:iPod touch (7th generation) } { platform:macOS, arch:arm64, variant:Designed for [iPad,iPhone], id:00008103-001A30860A88801E } { 平台:iOS,id:dvtdevice-DVTiPhonePlaceholder-iphoneos:占位符,名称:任何iOS设备}**构建失败**
Xcode's output: ↳ /Users/aliab/Desktop/flutter4/.pub-cache/hosted/pub.dartlang.org/webview_flutter-1.0.7/ios/Classes/FlutterWebView.m:367:23: warning: 'mediaPlaybackRequiresUserAction' is deprecated: first deprecated in iOS 9.0 [-Wdeprecated-declarations] configuration.mediaPlaybackRequiresUserAction = true; Xcode 的 output: ↳ /Users/aliab/Desktop/flutter4/.pub-cache/hosted/pub.dartlang.org/webview_flutter-1.0.7/ios/Classes/FlutterWebView.m:367:23: 警告:'mediaPlaybackRequiresUserAction' 是已弃用:首先在 iOS 9.0 [-Wdeprecated-declarations] configuration.mediaPlaybackRequiresUserAction = true 中弃用; ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mediaTypesRequiringUserActionForPlayback In module 'WebKit' imported from /Users/aliab/Desktop/flutter4/.pub-cache/hosted/pub.dartlang.org/webview_flutter-1.0.7/ios/Classes/FlutterWebView.h:6: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.2.sdk/System/Library/Frameworks/WebKit.framework/Headers/WKWebViewConfiguration.h:216:28: note: 'mediaPlaybackRequiresUserAction' has been explicitly marked deprecated here @property (nonatomic) BOOL mediaPlaybackRequiresUserAction API_DEPRECATED_WITH_REPLACEMENT("mediaTypesRequiringUserActionForPlayback", ios(8.0, 9.0)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mediaTypesRequiringUserActionForPlayback 在从 /Users/aliab/Desktop/flutter4/.pub 导入的模块“WebKit”中-cache/hosted/pub.dartlang.org/webview_flutter-1.0.7/ios/Classes/FlutterWebView.h:6:/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15。 2.sdk/System/Library/Frameworks/WebKit.framework/Headers/WKWebViewConfiguration.h:216:28:注意:'mediaPlaybackRequiresUserAction'已在此处明确标记为弃用@property(非原子)BOOL mediaPlaybackRequiresUserAction API_DEPRECATED_WITH_REPLACEMENT(“mediaTypesRequiringUserActionForPlayback”,ios( 8.0, 9.0)); ^ /Users/aliab/Desktop/flutter4/.pub-cache/hosted/pub.dartlang.org/webview_flutter-1.0.7/ios/Classes/FlutterWebView.m:374:23: warning: 'mediaPlaybackRequiresUserAction' is deprecated: first deprecated in iOS 9.0 [-Wdeprecated-declarations] configuration.mediaPlaybackRequiresUserAction = false; ^ /Users/aliab/Desktop/flutter4/.pub-cache/hosted/pub.dartlang.org/webview_flutter-1.0.7/ios/Classes/FlutterWebView.m:374:23:警告:“mediaPlaybackRequiresUserAction”已弃用:首先在 iOS 9.0 [-Wdeprecated-declarations] configuration.mediaPlaybackRequiresUserAction = false 中弃用; ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mediaTypesRequiringUserActionForPlayback In module 'WebKit' imported from /Users/aliab/Desktop/flutter4/.pub-cache/hosted/pub.dartlang.org/webview_flutter-1.0.7/ios/Classes/FlutterWebView.h:6: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.2.sdk/System/Library/Frameworks/WebKit.framework/Headers/WKWebViewConfiguration.h:216:28: note: 'mediaPlaybackRequiresUserAction' has been explicitly marked deprecated here @property (nonatomic) BOOL mediaPlaybackRequiresUserAction API_DEPRECATED_WITH_REPLACEMENT("mediaTypesRequiringUserActionForPlayback", ios(8.0, 9.0)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mediaTypesRequiringUserActionForPlayback 在从 /Users/aliab/Desktop/flutter4/.pub 导入的模块“WebKit”中-cache/hosted/pub.dartlang.org/webview_flutter-1.0.7/ios/Classes/FlutterWebView.h:6:/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15。 2.sdk/System/Library/Frameworks/WebKit.framework/Headers/WKWebViewConfiguration.h:216:28:注意:'mediaPlaybackRequiresUserAction'已在此处明确标记为弃用@property(非原子)BOOL mediaPlaybackRequiresUserAction API_DEPRECATED_WITH_REPLACEMENT(“mediaTypesRequiringUserActionForPlayback”,ios( 8.0, 9.0)); ^ 2 warnings generated. ^ 产生了 2 个警告。 12 warnings generated.生成了 12 个警告。 /Users/aliab/Desktop/flutter4/.pub-cache/hosted/pub.dartlang.org/image_picker-0.6.7+22/ios/Classes/FLTImagePickerPlugin.m:149:20: warning: 'UIAlertView' is deprecated: first deprecated in iOS 9.0 - UIAlertView is deprecated. /Users/aliab/Desktop/flutter4/.pub-cache/hosted/pub.dartlang.org/image_picker-0.6.7+22/ios/Classes/FLTImagePickerPlugin.m:149:20:警告:“UIAlertView”已弃用:首先在 iOS 9.0 中弃用 - UIAlertView 已弃用。 Use UIAlertController with a preferredStyle of UIAlertControllerStyleAlert instead [-Wdeprecated-declarations] [[[UIAlertView alloc] initWithTitle:NSLocalizedString(@"Error", nil) ^ In module 'UIKit' imported from /Users/aliab/Desktop/salon_apps/ios/Pods/Target Support Files/image_picker/image_picker-prefix.pch:2: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.2.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.将 UIAlertController 与 UIAlertControllerStyleAlert 的 preferredStyle 一起使用 [-Wdeprecated-declarations] [[[UIAlertView alloc] initWithTitle:NSLocalizedString(@"Error", nil) ^ 在从 /Users/aliab/Desktop/salon_apps/ios/ 导入的模块“UIKit”中Pod/目标支持文件/image_picker/image_picker-prefix.pch:2:/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.2.sdk/System/Library/Frameworks/UIKit .framework/Headers/UIAlertView.h:27:12:注意:“UIAlertView”已在此处明确标记为已弃用@interface UIAlertView:UIView ^ 1 条警告已生成。 /Users/aliab/Desktop/flutter4/.pub-cache/hosted/pub.dartlang.org/firebase_messaging-6.0.16/ios/Classes/FLTFirebaseMessagingPlugin.m:195:43: error: expected a type - (void)applicationReceivedRemoteMessage:(FIRMessagingRemoteMessage *)remoteMessage { ^ /Users/aliab/Desktop/flutter4/.pub-cache/hosted/pub.dartlang.org/firebase_messaging-6.0.16/ios/Classes/FLTFirebaseMessagingPlugin.m:291:42: warning: 'UIUserNotificationSettings' is deprecated: first deprecated in iOS 10.0 - Use UserNotifications Framework's UNNotificationSettings [-Wdeprecated-declarations] didRegisterUserNotificationSettings:(UIUserNotificationSettings *)notificationSettings { ^ In module 'UIKit' imported from /Users/aliab/Desktop/salon_apps/ios/Pods/Target Support Files/firebase_messaging/firebase_messaging-prefix.pch:2: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.2.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIUserNotificationSetting /Users/aliab/Desktop/flutter4/.pub-cache/hosted/pub.dartlang.org/firebase_messaging-6.0.16/ios/Classes/FLTFirebaseMessagingPlugin.m:195:43:错误:预期类型 - (void)applicationReceivedRemoteMessage :(FIRMessagingRemoteMessage *)remoteMessage { ^ /Users/aliab/Desktop/flutter4/.pub-cache/hosted/pub.dartlang.org/firebase_messaging-6.0.16/ios/Classes/FLTFirebaseMessagingPlugin.m:291:42:警告: 'UIUserNotificationSettings' 已弃用:首先在 iOS 10.0 中弃用 - 使用 UserNotifications Framework 的 UNNotificationSettings [-Wdeprecated-declarations] didRegisterUserNotificationSettings:(UIUserNotificationSettings *)notificationSettings { ^ 在从 /Users/aliab/Desktop/salon_apps/ios 导入的模块“UIKit”中/目标支持文件/firebase_messaging/firebase_messaging-prefix.pch:2:/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.2.sdk/System/Library/Frameworks/UIKit。框架/标题/UIUserNotificationSetting s.h:44:12: note: 'UIUserNotificationSettings' has been explicitly marked deprecated here @interface UIUserNotificationSettings: NSObject ^ /Users/aliab/Desktop/flutter4/.pub-cache/hosted/pub.dartlang.org/firebase_messaging-6.0.16/ios/Classes/FLTFirebaseMessagingPlugin.m:302:53: error: nullability specifier 'nonnull' conflicts with existing specifier 'nullable' didReceiveRegistrationToken:(nonnull NSString *)fcmToken { ^ /Users/aliab/Desktop/flutter4/.pub-cache/hosted/pub.dartlang.org/firebase_messaging-6.0.16/ios/Classes/FLTFirebaseMessagingPlugin.m:307:24: error: expected a type didReceiveMessage:(FIRMessagingRemoteMessage *)remoteMessage { ^ /Users/aliab/Desktop/flutter4/.pub-cache/hosted/pub.dartlang.org/firebase_messaging-6.0.16/ios/Classes/FLTFirebaseMessagingPlugin.m:122:7: warning: 'UIUserNotificationType' is deprecated: first deprecated in iOS 10.0 - Use UserNotifications Framework's UNAuthorizationOptions [-Wdeprecated-declarations] UIUserNotificationType notificati s.h:44:12:注意:“UIUserNotificationSettings”已在此处明确标记为已弃用@interface UIUserNotificationSettings:NSObject ^ /Users/aliab/Desktop/flutter4/.pub-cache/hosted/pub.dartlang.org/firebase_messaging-6.0.16 /ios/Classes/FLTFirebaseMessagingPlugin.m:302:53: 错误:可空性说明符“nonnull”与现有说明符“nullable”冲突 didReceiveRegistrationToken:(nonnull NSString *)fcmToken { ^ /Users/aliab/Desktop/flutter4/.pub-cache /hosted/pub.dartlang.org/firebase_messaging-6.0.16/ios/Classes/FLTFirebaseMessagingPlugin.m:307:24: 错误:预期类型 didReceiveMessage:(FIRMessagingRemoteMessage *)remoteMessage { ^ /Users/aliab/Desktop/flutter4/ .pub-cache/hosted/pub.dartlang.org/firebase_messaging-6.0.16/ios/Classes/FLTFirebaseMessagingPlugin.m:122:7: warning: 'UIUserNotificationType' is deprecated: first deprecated in iOS 10.0 - 使用 UserNotifications Framework 的 UNAuthorizationOptions [ -Wdeprecated-declarations] UIUserNotificationType 通知onTypes = 0; onTypes = 0; ^ In module 'UIKit' imported from /Users/aliab/Desktop/salon_apps/ios/Pods/Target Support Files/firebase_messaging/firebase_messaging-prefix.pch:2: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.2.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIUserNotificationSettings.h:17:32: note: 'UIUserNotificationType' has been explicitly marked deprecated here typedef NS_OPTIONS(NSUInteger, UIUserNotificationType) { ^ /Users/aliab/Desktop/flutter4/.pub-cache/hosted/pub.dartlang.org/firebase_messaging-6.0.16/ios/Classes/FLTFirebaseMessagingPlugin.m:124:30: warning: 'UIUserNotificationTypeSound' is deprecated: first deprecated in iOS 10.0 - Use UserNotifications Framework's UNAuthorizationOptions [-Wdeprecated-declarations] notificationTypes |= UIUserNotificationTypeSound; ^ 在从 /Users/aliab/Desktop/salon_apps/ios/Pods/Target Support Files/firebase_messaging/firebase_messaging-prefix.pch:2 导入的模块“UIKit”中:/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator。 platform/Developer/SDKs/iPhoneSimulator15.2.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIUserNotificationSettings.h:17:32:注意:“UIUserNotificationType”已在此处明确标记为已弃用 typedef NS_OPTIONS(NSUInteger, UIUserNotificationType) { ^ /Users/aliab/Desktop/flutter4/.pub-cache/hosted/pub.dartlang.org/firebase_messaging-6.0.16/ios/Classes/FLTFirebaseMessagingPlugin.m:124:30: 警告:“UIUserNotificationTypeSound”已弃用:首先在 iOS 10.0 中弃用 - 使用 UserNotifications Framework 的 UNAuthorizationOptions [-Wdeprecated-declarations] notificationTypes |= UIUserNotificationTypeSound; ^ In module 'UIKit' imported from /Users/aliab/Desktop/salon_apps/ios/Pods/Target Support Files/firebase_messaging/firebase_messaging-prefix.pch:2: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.2.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIUserNotificationSettings.h:17:32: note: 'UIUserNotificationType' has been explicitly marked deprecated here typedef NS_OPTIONS(NSUInteger, UIUserNotificationType) { ^ /Users/aliab/Desktop/flutter4/.pub-cache/hosted/pub.dartlang.org/firebase_messaging-6.0.16/ios/Classes/FLTFirebaseMessagingPlugin.m:127:30: warning: 'UIUserNotificationTypeAlert' is deprecated: first deprecated in iOS 10.0 - Use UserNotifications Framework's UNAuthorizationOptions [-Wdeprecated-declarations] notificationTypes |= UIUserNotificationTypeAlert; ^ 在从 /Users/aliab/Desktop/salon_apps/ios/Pods/Target Support Files/firebase_messaging/firebase_messaging-prefix.pch:2 导入的模块“UIKit”中:/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator。 platform/Developer/SDKs/iPhoneSimulator15.2.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIUserNotificationSettings.h:17:32:注意:“UIUserNotificationType”已在此处明确标记为已弃用 typedef NS_OPTIONS(NSUInteger, UIUserNotificationType) { ^ /Users/aliab/Desktop/flutter4/.pub-cache/hosted/pub.dartlang.org/firebase_messaging-6.0.16/ios/Classes/FLTFirebaseMessagingPlugin.m:127:30: 警告:“UIUserNotificationTypeAlert”已弃用:首先在 iOS 10.0 中弃用 - 使用 UserNotifications Framework 的 UNAuthorizationOptions [-Wdeprecated-declarations] notificationTypes |= UIUserNotificationTypeAlert; ^ In module 'UIKit' imported from /Users/aliab/Desktop/salon_apps/ios/Pods/Target Support Files/firebase_messaging/firebase_messaging-prefix.pch:2: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.2.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIUserNotificationSettings.h:17:32: note: 'UIUserNotificationType' has been explicitly marked deprecated here typedef NS_OPTIONS(NSUInteger, UIUserNotificationType) { ^ /Users/aliab/Desktop/flutter4/.pub-cache/hosted/pub.dartlang.org/firebase_messaging-6.0.16/ios/Classes/FLTFirebaseMessagingPlugin.m:130:30: warning: 'UIUserNotificationTypeBadge' is deprecated: first deprecated in iOS 10.0 - Use UserNotifications Framework's UNAuthorizationOptions [-Wdeprecated-declarations] notificationTypes |= UIUserNotificationTypeBadge; ^ 在从 /Users/aliab/Desktop/salon_apps/ios/Pods/Target Support Files/firebase_messaging/firebase_messaging-prefix.pch:2 导入的模块“UIKit”中:/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator。 platform/Developer/SDKs/iPhoneSimulator15.2.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIUserNotificationSettings.h:17:32:注意:“UIUserNotificationType”已在此处明确标记为已弃用 typedef NS_OPTIONS(NSUInteger, UIUserNotificationType) { ^ /Users/aliab/Desktop/flutter4/.pub-cache/hosted/pub.dartlang.org/firebase_messaging-6.0.16/ios/Classes/FLTFirebaseMessagingPlugin.m:130:30: 警告:“UIUserNotificationTypeBadge”已弃用:首先在 iOS 10.0 中弃用 - 使用 UserNotifications Framework 的 UNAuthorizationOptions [-Wdeprecated-declarations] notificationTypes |= UIUserNotificationTypeBadge; ^ In module 'UIKit' imported from /Users/aliab/Desktop/salon_apps/ios/Pods/Target Support Files/firebase_messaging/firebase_messaging-prefix.pch:2: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.2.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIUserNotificationSettings.h:17:32: note: 'UIUserNotificationType' has been explicitly marked deprecated here typedef NS_OPTIONS(NSUInteger, UIUserNotificationType) { ^ /Users/aliab/Desktop/flutter4/.pub-cache/hosted/pub.dartlang.org/firebase_messaging-6.0.16/ios/Classes/FLTFirebaseMessagingPlugin.m:133:7: warning: 'UIUserNotificationSettings' is deprecated: first deprecated in iOS 10.0 - Use UserNotifications Framework's UNNotificationSettings [-Wdeprecated-declarations] UIUserNotificationSettings *settings = ^ In module 'UIKit' imported from /Users/aliab/Desktop/salon_apps/ios/Pods/Target Support Files/firebase_messaging/firebase_messaging-prefix.pch:2: /Applicati ^ 在从 /Users/aliab/Desktop/salon_apps/ios/Pods/Target Support Files/firebase_messaging/firebase_messaging-prefix.pch:2 导入的模块“UIKit”中:/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator。 platform/Developer/SDKs/iPhoneSimulator15.2.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIUserNotificationSettings.h:17:32:注意:“UIUserNotificationType”已在此处明确标记为已弃用 typedef NS_OPTIONS(NSUInteger, UIUserNotificationType) { ^ /Users/aliab/Desktop/flutter4/.pub-cache/hosted/pub.dartlang.org/firebase_messaging-6.0.16/ios/Classes/FLTFirebaseMessagingPlugin.m:133:7: 警告:“UIUserNotificationSettings”已弃用:在 iOS 10.0 中首次弃用 - 使用 UserNotifications Framework 的 UNNotificationSettings [-Wdeprecated-declarations] UIUserNotificationSettings *settings = ^ 在从 /Users/aliab/Desktop/salon_apps/ios/Pods/Target Support Files/firebase_messaging/firebase_messaging-prefix 导入的模块“UIKit”中.pch:2: /申请ons/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.2.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIUserNotificationSettings.h:44:12: note: 'UIUserNotificationSettings' has been explicitly marked deprecated here @interface UIUserNotificationSettings: NSObject ^ /Users/aliab/Desktop/flutter4/.pub-cache/hosted/pub.dartlang.org/firebase_messaging-6.0.16/ios/Classes/FLTFirebaseMessagingPlugin.m:134:39: warning: 'UIUserNotificationSettings' is deprecated: first deprecated in iOS 10.0 - Use UserNotifications Framework's UNNotificationSettings [-Wdeprecated-declarations] [UIUserNotificationSettings settingsForTypes:notificationTypes categories:nil]; ons/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.2.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIUserNotificationSettings.h:44:12: 注意:'UIUserNotificationSettings ' 已在此处明确标记为已弃用 @interface UIUserNotificationSettings: NSObject ^ /Users/aliab/Desktop/flutter4/.pub-cache/hosted/pub.dartlang.org/firebase_messaging-6.0.16/ios/Classes/FLTFirebaseMessagingPlugin.m:134 :39: 警告:“UIUserNotificationSettings”已弃用:在 iOS 10.0 中首次弃用 - 使用 UserNotifications 框架的 UNNotificationSettings [-Wdeprecated-declarations] [UIUserNotificationSettings settingsForTypes:notificationTypes categories:nil]; ^ In module 'UIKit' imported from /Users/aliab/Desktop/salon_apps/ios/Pods/Target Support Files/firebase_messaging/firebase_messaging-prefix.pch:2: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.2.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIUserNotificationSettings.h:44:12: note: 'UIUserNotificationSettings' has been explicitly marked deprecated here @interface UIUserNotificationSettings: NSObject ^ /Users/aliab/Desktop/flutter4/.pub-cache/hosted/pub.dartlang.org/firebase_messaging-6.0.16/ios/Classes/FLTFirebaseMessagingPlugin.m:135:42: warning: 'registerUserNotificationSettings:' is deprecated: first deprecated in iOS 10.0 - Use UserNotifications Framework's -[UNUserNotificationCenter requestAuthorizationWithOptions:completionHandler:] and -[UNUserNotificationCenter setNotificationCategories:] [-Wdeprecated-declarations] [[UIApplication sharedApplication] registerUserNotificationSettings:settings]; ^ 在从 /Users/aliab/Desktop/salon_apps/ios/Pods/Target Support Files/firebase_messaging/firebase_messaging-prefix.pch:2 导入的模块“UIKit”中:/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator。 platform/Developer/SDKs/iPhoneSimulator15.2.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIUserNotificationSettings.h:44:12:注意:“UIUserNotificationSettings”已在此处明确标记为已弃用@interface UIUserNotificationSettings:NSObject ^ / Users/aliab/Desktop/flutter4/.pub-cache/hosted/pub.dartlang.org/firebase_messaging-6.0.16/ios/Classes/FLTFirebaseMessagingPlugin.m:135:42: 警告:'registerUserNotificationSettings:' 已弃用:首先弃用在 iOS 10.0 - 使用 UserNotifications Framework 的 -[UNUserNotificationCenter requestAuthorizationWithOptions:completionHandler:] 和 -[UNUserNotificationCenter setNotificationCategories:] [-Wdeprecated-declarations] [[UIApplication sharedApplication] registerUserNotificationSettings:settings]; ^ In module 'UIKit' imported from /Users/aliab/Desktop/salon_apps/ios/Pods/Target Support Files/firebase_messaging/firebase_messaging-prefix.pch:2: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.2.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIApplication.h:251:1: note: 'registerUserNotificationSettings:' has been explicitly marked deprecated here - (void)registerUserNotificationSettings:(UIUserNotificationSettings *)notificationSettings API_DEPRECATED("Use UserNotifications Framework's -[UNUserNotificationCenter requestAuthorizationWithOptions:completionHandler:] and -[UNUserNotificationCenter setNotificationCategories:]", ios(8.0, 10.0)) API_UNAVAILABLE(tvos); ^ 在从 /Users/aliab/Desktop/salon_apps/ios/Pods/Target Support Files/firebase_messaging/firebase_messaging-prefix.pch:2 导入的模块“UIKit”中:/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator。 platform/Developer/SDKs/iPhoneSimulator15.2.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIApplication.h:251:1:注意:“registerUserNotificationSettings:”已在此处明确标记为已弃用 - (void)registerUserNotificationSettings: (UIUserNotificationSettings *)notificationSettings API_DEPRECATED("使用 UserNotifications 框架的 -[UNUserNotificationCenter requestAuthorizationWithOptions:completionHandler:] 和 -[UNUserNotificationCenter setNotificationCategories:]", ios(8.0, 10.0)) API_UNAVAILABLE(tvos); ^ /Users/aliab/Desktop/flutter4/.pub-cache/hosted/pub.dartlang.org/firebase_messaging-6.0.16/ios/Classes/FLTFirebaseMessagingPlugin.m:141:30: error: property 'shouldEstablishDirectChannel' not found on object of type 'FIRMessaging *' [FIRMessaging messaging].shouldEstablishDirectChannel = true; ^ /Users/aliab/Desktop/flutter4/.pub-cache/hosted/pub.dartlang.org/firebase_messaging-6.0.16/ios/Classes/FLTFirebaseMessagingPlugin.m:141:30: 错误:找不到属性“shouldEstablishDirectChannel” object 类型为“FIRMessaging *”[FIRMessaging messaging].shouldEstablishDirectChannel = true; ^ /Users/aliab/Desktop/flutter4/.pub-cache/hosted/pub.dartlang.org/firebase_messaging-6.0.16/ios/Classes/FLTFirebaseMessagingPlugin.m:160:7: error: use of undeclared identifier 'FIRInstanceID' [[FIRInstanceID instanceID] ^ /Users/aliab/Desktop/flutter4/.pub-cache/hosted/pub.dartlang.org/firebase_messaging-6.0.16/ios/Classes/FLTFirebaseMessagingPlugin.m:171:7: error: use of undeclared identifier 'FIRInstanceID' [[FIRInstanceID instanceID] deleteIDWithHandler:^void(NSError *_Nullable error) { ^ /Users/aliab/Desktop/flutter4/.pub-cache/hosted/pub.dartlang.org/firebase_messaging-6.0.16/ios/Classes/FLTFirebaseMessagingPlugin.m:196:52: error: property 'appData' not found on object of type '__strong id' [self didReceiveRemoteNotification:remoteMessage.appData]; ^ /Users/aliab/Desktop/flutter4/.pub-cache/hosted/pub.dartlang.org/firebase_messaging-6.0.16/ios/Classes/FLTFirebaseMessagingPlugin.m:160:7:错误:使用未声明的标识符“FIRInstanceID” [[FIRInstanceID instanceID] ^ /Users/aliab/Desktop/flutter4/.pub-cache/hosted/pub.dartlang.org/firebase_messaging-6.0.16/ios/Classes/FLTFirebaseMessagingPlugin.m:171:7: 错误:使用未声明的标识符 'FIRInstanceID' [[FIRInstanceID instanceID] deleteIDWithHandler:^void(NSError *_Nullable error) { ^ /Users/aliab/Desktop/flutter4/.pub-cache/hosted/pub.dartlang.org/firebase_messaging-6.0.16/ ios/Classes/FLTFirebaseMessagingPlugin.m:196:52: 错误:在类型为“__strong id”的 object 上找不到属性“appData”[self didReceiveRemoteNotification:remoteMessage.appData]; ^ /Users/aliab/Desktop/flutter4/.pub-cache/hosted/pub.dartlang.org/firebase_messaging-6.0.16/ios/Classes/FLTFirebaseMessagingPlugin.m:290:1: warning: implementing deprecated method [-Wdeprecated-implementations] - (void)application:(UIApplication )application ^ In module 'Flutter' imported from /Users/aliab/Desktop/flutter4/.pub-cache/hosted/pub.dartlang.org/firebase_messaging-6.0.16/ios/Classes/FLTFirebaseMessagingPlugin.h:5: /Users/aliab/Desktop/flutter4/bin/cache/artifacts/engine/ios/Flutter.xcframework/ios-x86_64-simulator/Flutter.framework/Headers/FlutterPlugin.h:74:1: note: method 'application:didRegisterUserNotificationSettings:' declared here - (void)application:(UIApplication )application ^ /Users/aliab/Desktop/flutter4/.pub-cache/hosted/pub.dartlang.org/firebase_messaging-6.0.16/ios/Classes/FLTFirebaseMessagingPlugin.m:293:70: warning: 'UIUserNotificationTypeSound' is deprecated: first deprecated in iOS 10.0 - Use UserNotifications Framework's UNAuthorizationOption ^ /Users/aliab/Desktop/flutter4/.pub-cache/hosted/pub.dartlang.org/firebase_messaging-6.0.16/ios/Classes/FLTFirebaseMessagingPlugin.m:290:1:警告:实施弃用方法[-Wdeprecated- implementations] - (void)application:(UIApplication )application ^ 在从 /Users/aliab/Desktop/flutter4/.pub-cache/hosted/pub.dartlang.org/firebase_messaging-6.0.16/ios/ 导入的模块“Flutter”中类/FLTFirebaseMessagingPlugin.h:5:/Users/aliab/Desktop/flutter4/bin/cache/artifacts/engine/ios/Flutter.xcframework/ios-x86_64-simulator/Flutter.framework/Headers/FlutterPlugin.h:74:1 : 注意:方法 'application:didRegisterUserNotificationSettings:' 在这里声明 - (void)application:(UIApplication )application ^ /Users/aliab/Desktop/flutter4/.pub-cache/hosted/pub.dartlang.org/firebase_messaging-6.0.16 /ios/Classes/FLTFirebaseMessagingPlugin.m:293:70: 警告:“UIUserNotificationTypeSound”已弃用:首先弃用于 iOS 10.0 - 使用 UserNotifications Framework 的 UNAuthorizationOption s [-Wdeprecated-declarations] @"sound": [NSNumber numberWithBool:notificationSettings.types & UIUserNotificationTypeSound], ^ In module 'UIKit' imported from /Users/aliab/Desktop/salon_apps/ios/Pods/Target Support Files/firebase_messaging/firebase_messaging-prefix.pch:2: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.2.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIUserNotificationSettings.h:17:32: note: 'UIUserNotificationType' has been explicitly marked deprecated here typedef NS_OPTIONS(NSUInteger, UIUserNotificationType) { ^ /Users/aliab/Desktop/flutter4/.pub-cache/hosted/pub.dartlang.org/firebase_messaging-6.0.16/ios/Classes/FLTFirebaseMessagingPlugin.m:294:70: warning: 'UIUserNotificationTypeBadge' is deprecated: first deprecated in iOS 10.0 - Use UserNotifications Framework's UNAuthorizationOptions [-Wdeprecated-declarations] @"badge": [NSNumber numberWithBool:notificationSettings.types & UIUserN s [-Wdeprecated-declarations] @"sound": [NSNumber numberWithBool:notificationSettings.types & UIUserNotificationTypeSound], ^ 在从 /Users/aliab/Desktop/salon_apps/ios/Pods/Target Support Files/firebase_messaging/ 导入的模块“UIKit”中firebase_messaging-prefix.pch:2:/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.2.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIUserNotificationSettings.h :17:32: 注意:'UIUserNotificationType' 已在此处明确标记为已弃用 typedef NS_OPTIONS(NSUInteger, UIUserNotificationType) { ^ /Users/aliab/Desktop/flutter4/.pub-cache/hosted/pub.dartlang.org/firebase_messaging-6.0 .16/ios/Classes/FLTFirebaseMessagingPlugin.m:294:70: 警告:“UIUserNotificationTypeBadge”已弃用:在 iOS 中首次弃用 10.0 - 使用 UserNotifications Framework 的 UNAuthorizationOptions [-Wdeprecated-declarations] @"badge": [NSNumber numberWithBool:notificationSettings.类型和 UIUserN otificationTypeBadge], ^ In module 'UIKit' imported from /Users/aliab/Desktop/salon_apps/ios/Pods/Target Support Files/firebase_messaging/firebase_messaging-prefix.pch:2: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.2.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIUserNotificationSettings.h:17:32: note: 'UIUserNotificationType' has been explicitly marked deprecated here typedef NS_OPTIONS(NSUInteger, UIUserNotificationType) { ^ /Users/aliab/Desktop/flutter4/.pub-cache/hosted/pub.dartlang.org/firebase_messaging-6.0.16/ios/Classes/FLTFirebaseMessagingPlugin.m:295:70: warning: 'UIUserNotificationTypeAlert' is deprecated: first deprecated in iOS 10.0 - Use UserNotifications Framework's UNAuthorizationOptions [-Wdeprecated-declarations] @"alert": [NSNumber numberWithBool:notificationSettings.types & UIUserNotificationTypeAlert], ^ In module 'UIKit' imported from /Users/aliab/Desktop/salon_apps/ios/Pods/Tar otificationTypeBadge],^ 在从 /Users/aliab/Desktop/salon_apps/ios/Pods/Target Support Files/firebase_messaging/firebase_messaging-prefix.pch:2 导入的模块“UIKit”中:/Applications/Xcode.app/Contents/Developer/Platforms /iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.2.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIUserNotificationSettings.h:17:32: 注意:“UIUserNotificationType”已在此处明确标记为已弃用 typedef NS_OPTIONS(NSUInteger , UIUserNotificationType) { ^ /Users/aliab/Desktop/flutter4/.pub-cache/hosted/pub.dartlang.org/firebase_messaging-6.0.16/ios/Classes/FLTFirebaseMessagingPlugin.m:295:70: 警告:'UIUserNotificationTypeAlert'已弃用:首先在 iOS 10.0 中弃用 - 使用 UserNotifications Framework 的 UNAuthorizationOptions [-Wdeprecated-declarations] @"alert": [NSNumber numberWithBool:notificationSettings.types & UIUserNotificationTypeAlert],^ 在从 /Users/aliab/Desktop/ 导入的模块“UIKit”中salon_apps/ios/豆荚/焦油get Support Files/firebase_messaging/firebase_messaging-prefix.pch:2: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.2.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIUserNotificationSettings.h:17:32: note: 'UIUserNotificationType' has been explicitly marked deprecated here typedef NS_OPTIONS(NSUInteger, UIUserNotificationType) { ^ /Users/aliab/Desktop/flutter4/.pub-cache/hosted/pub.dartlang.org/firebase_messaging-6.0.16/ios/Classes/FLTFirebaseMessagingPlugin.m:308:63: error: property 'appData' not found on object of type '__strong id' [_channel invokeMethod:@"onMessage" arguments:remoteMessage.appData];获取支持文件/firebase_messaging/firebase_messaging-prefix.pch:2:/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.2.sdk/System/Library/Frameworks/UIKit.framework /Headers/UIUserNotificationSettings.h:17:32: 注意:“UIUserNotificationType”已在此处明确标记为已弃用... ]; ^ 12 warnings and 8 errors generated. ^ 产生了 12 个警告和 8 个错误。 note: Using new build system note: Planning note: Build preparation complete note: Building targets in dependency order /Users/aliab/Desktop/salon_apps/ios/Pods/Pods.xcodeproj: warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 15.2.99.注意:使用新的构建系统注意:规划注意:构建准备完成注意:按依赖顺序构建目标/Users/aliab/Desktop/salon_apps/ios/Pods/Pods.xcodeproj:警告:设置了 iOS 模拟器部署目标“IPHONEOS_DEPLOYMENT_TARGET”到 8.0,但支持的部署目标版本范围是 9.0 到 15.2.99。 (in target 'Flutter' from project 'Pods') (在项目“Pods”的目标“Flutter”中)
Could not build the application for the simulator.无法为模拟器构建应用程序。 Error launching application on iPhone 13.在 iPhone 13 上启动应用程序时出错。
Add platform:ios, '10.0'
to the Podfile.添加platform:ios, '10.0'
到 Podfile。
Recent versions of Firebase requires do not support iOS 8 and require a minimum of at least iOS 10. Without specifying the value, CocoaPods defaults to 8.0.最新版本的 Firebase 要求不支持 iOS 8,至少需要 iOS 10。如果不指定值,CocoaPods 默认为 8.0。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.