将flutter版本由1.22.5升级到2.5.1,点击运行失败。
错误信息:
Failed to build iOS app
Error output from Xcode build:
↳
** BUILD FAILED **
Xcode's output:
↳
2 warnings generated.
/Users/liandian/development/flutter/.pub-cache/hosted/pub.flutter-io.cn/location_permissions-4.0.1/ios/Classes/LocationPermissionsPlugin.m:84:9: warning: 'openURL:' is deprecated: first deprecated in iOS 10.0 [-Wdeprecated-declarations]
openURL:[NSURL URLWithString:UIApplicationOpenSettingsURLString]];
^~~~~~~
openURL:options:completionHandler:
In module 'UIKit' imported from /Users/liandian/workspace/AndroidStudioProjects/fmios/ios/Pods/Target Support Files/location_permissions/location_permissions-prefix.pch:2:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.5.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIApplication.h:123:1: note: 'openURL:' has been explicitly marked deprecated here
- (BOOL)openURL:(NSURL*)url API_DEPRECATED_WITH_REPLACEMENT("openURL:options:completionHandler:", ios(2.0, 10.0)) NS_EXTENSION_UNAVAILABLE_IOS("");
^
1 warning generated.
/Users/liandian/development/flutter/.pub-cache/hosted/pub.flutter-io.cn/jpush_flutter-2.1.5/ios/Classes/JPushPlugin.m:400:17: warning: 'action' is deprecated: first deprecated in iOS 10.0 [-Wdeprecated-declarations]
content.action = params[@"action"];
^
In file included from /Users/liandian/development/flutter/.pub-cache/hosted/pub.flutter-io.cn/jpush_flutter-2.1.5/ios/Classes/JPushPlugin.m:6:
/Users/liandian/workspace/AndroidStudioProjects/fmios/ios/Pods/Headers/Private/JPush/JPUSHService.h:122:39: note: 'action' has been explicitly marked deprecated here
@property (nonatomic, copy) NSString *action NS_DEPRECATED_IOS(8_0, 10_0); // 弹框的按钮显示的内容(IOS 8默认为"打开", 其他默认为"启动",iOS10以上无效)
^
/Users/liandian/development/flutter/.pub-cache/hosted/pub.flutter-io.cn/jpush_flutter-2.1.5/ios/Classes/JPushPlugin.m:425:21: warning: 'fireDate' is deprecated: first deprecated in iOS 10.0 [-Wdeprecated-declarations]
trigger.fireDate = [NSDate dateWithTimeIntervalSince1970: [date doubleValue]/1000];
^
In file included from /Users/liandian/development/flutter/.pub-cache/hosted/pub.flutter-io.cn/jpush_flutter-2.1.5/ios/Classes/JPushPlugin.m:6:
/Users/liandian/workspace/AndroidStudioProjects/fmios/ios/Pods/Headers/Private/JPush/JPUSHService.h:144:37: note: 'fireDate' has been explicitly marked deprecated here
@property (nonatomic, copy) NSDate *fireDate NS_DEPRECATED_IOS(2_0, 10_0); // 用来设置触发推送的时间,iOS10以上无效
^
/Users/liandian/development/flutter/.pub-cache/hosted/pub.flutter-io.cn/jpush_flutter-2.1.5/ios/Classes/JPushPlugin.m:486:36: warning: 'UIApplicationLaunchOptionsLocalNotificationKey' is deprecated: first deprecated in iOS 10.0 - Use UserNotifications Framework's -[UNUserNotificationCenterDelegate didReceiveNotificationResponse:withCompletionHandler:] [-Wdeprecated-declarations]
if ([launchOptions valueForKey:UIApplicationLaunchOptionsLocalNotificationKey]) {
^
In module 'UIKit' imported from /Users/liandian/workspace/AndroidStudioProjects/fmios/ios/Pods/Target Support Files/jpush_flutter/jpush_flutter-prefix.pch:2:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.5.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIApplication.h:504:50: note: 'UIApplicationLaunchOptionsLocalNotificationKey' has been explicitly marked deprecated here
UIKIT_EXTERN UIApplicationLaunchOptionsKey const UIApplicationLaunchOptionsLocalNotificationKey NS_SWIFT_NAME(localNotification) API_DEPRECATED("Use UserNotifications Framework's -[UNUserNotificationCenterDelegate didReceiveNotificationResponse:withCompletionHandler:]", ios(4.0, 10.0)) API_UNAVAILABLE(tvos); // userInfo contains a UILocalNotification
^
/Users/liandian/development/flutter/.pub-cache/hosted/pub.flutter-io.cn/jpush_flutter-2.1.5/ios/Classes/JPushPlugin.m:487:9: warning: 'UILocalNotification' is deprecated: first deprecated in iOS 10.0 - Use UserNotifications Framework's UNNotificationRequest [-Wdeprecated-declarations]
UILocalNotification *localNotification = [launchOptions valueForKey:UIApplicationLaunchOptionsLocalNotificationKey];
^
In module 'UIKit' imported from /Users/liandian/workspace/AndroidStudioProjects/fmios/ios/Pods/Target Support Files/jpush_flutter/jpush_flutter-prefix.pch:2:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.5.sdk/System/Library/Frameworks/UIKit.framework/Headers/UILocalNotification.h:18:12: note: 'UILocalNotification' has been explicitly marked deprecated here
@interface UILocalNotification : NSObject<NSCopying, NSCoding>
^
/Users/liandian/development/flutter/.pub-cache/hosted/pub.flutter-io.cn/jpush_flutter-2.1.5/ios/Classes/JPushPlugin.m:487:77: warning: 'UIApplicationLaunchOptionsLocalNotificationKey' is deprecated: first deprecated in iOS 10.0 - Use UserNotifications Framework's -[UNUserNotificationCenterDelegate didReceiveNotificationResponse:withCompletionHandler:] [-Wdeprecated-declarations]
UILocalNotification *localNotification = [launchOptions valueForKey:UIApplicationLaunchOptionsLocalNotificationKey];
^
In module 'UIKit' imported from /Users/liandian/workspace/AndroidStudioProjects/fmios/ios/Pods/Target Support Files/jpush_flutter/jpush_flutter-prefix.pch:2:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.5.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIApplication.h:504:50: note: 'UIApplicationLaunchOptionsLocalNotificationKey' has been explicitly marked deprecated here
UIKIT_EXTERN UIApplicationLaunchOptionsKey const UIApplicationLaunchOptionsLocalNotificationKey NS_SWIFT_NAME(localNotification) API_DEPRECATED("Use UserNotifications Framework's -[UNUserNotificationCenterDelegate didReceiveNotificationResponse:withCompletionHandler:]", ios(4.0, 10.0)) API_UNAVAILABLE(tvos); // userInfo contains a UILocalNotification
^
/Users/liandian/development/flutter/.pub-cache/hosted/pub.flutter-io.cn/jpush_flutter-2.1.5/ios/Classes/JPushPlugin.m:493:93: warning: 'UILocalNotificationDefaultSoundName' is deprecated: first deprecated in iOS 10.0 - Use UserNotifications Framework's +[UNNotificationSound defaultSound] [-Wdeprecated-declarations]
localNotificationEvent[@"soundName"] = [localNotification.soundName isEqualToString:UILocalNotificationDefaultSoundName] ? @"" : localNotification.soundName;
^
In module 'UIKit' imported from /Users/liandian/workspace/AndroidStudioProjects/fmios/ios/Pods/Target Support Files/jpush_flutter/jpush_flutter-prefix.pch:2:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.5.sdk/System/Library/Frameworks/UIKit.framework/Headers/UILocalNotification.h:62:30: note: 'UILocalNotificationDefaultSoundName' has been explicitly marked deprecated here
UIKIT_EXTERN NSString *const UILocalNotificationDefaultSoundName API_DEPRECATED("Use UserNotifications Framework's +[UNNotificationSound defaultSound]", ios(4.0, 10.0)) API_UNAVAILABLE(tvos);
^
/Users/liandian/development/flutter/.pub-cache/hosted/pub.flutter-io.cn/jpush_flutter-2.1.5/ios/Classes/JPushPlugin.m:511:17: warning: 'fireDate' is deprecated: first deprecated in iOS 10.0 [-Wdeprecated-declarations]
trigger.fireDate = fireDate;
^
In file included from /Users/liandian/development/flutter/.pub-cache/hosted/pub.flutter-io.cn/jpush_flutter-2.1.5/ios/Classes/JPushPlugin.m:6:
/Users/liandian/workspace/AndroidStudioProjects/fmios/ios/Pods/Headers/Private/JPush/JPUSHService.h:144:37: note: 'fireDate' has been explicitly marked deprecated here
@property (nonatomic, copy) NSDate *fireDate NS_DEPRECATED_IOS(2_0, 10_0); // 用来设置触发推送的时间,iOS10以上无效
^
/Users/liandian/development/flutter/.pub-cache/hosted/pub.flutter-io.cn/jpush_flutter-2.1.5/ios/Classes/JPushPlugin.m:519:13: warning: 'action' is deprecated: first deprecated in iOS 10.0 [-Wdeprecated-declarations]
content.action = @"action";
^
In file included from /Users/liandian/development/flutter/.pub-cache/hosted/pub.flutter-io.cn/jpush_flutter-2.1.5/ios/Classes/JPushPlugin.m:6:
/Users/liandian/workspace/AndroidStudioProjects/fmios/ios/Pods/Headers/Private/JPush/JPUSHService.h:122:39: note: 'action' has been explicitly marked deprecated here
@property (nonatomic, copy) NSString *action NS_DEPRECATED_IOS(8_0, 10_0); // 弹框的按钮显示的内容(IOS 8默认为"打开", 其他默认为"启动",iOS10以上无效)
^
/Users/liandian/development/flutter/.pub-cache/hosted/pub.flutter-io.cn/jpush_flutter-2.1.5/ios/Classes/JPushPlugin.m:551:1: warning: implementing deprecated method [-Wdeprecated-implementations]
- (void)application:(UIApplication *)application didRegisterUserNotificationSettings:(UIUserNotificationSettings *)notificationSettings {
^
In module 'Flutter' imported from /Users/liandian/development/flutter/.pub-cache/hosted/pub.flutter-io.cn/jpush_flutter-2.1.5/ios/Classes/JPushPlugin.h:1:
/Users/liandian/development/flutter/bin/cache/artifacts/engine/ios/Flutter.xcframework/ios-arm64_armv7/Flutter.framework/Headers/FlutterPlugin.h:74:1: note: method 'application:didRegisterUserNotificationSettings:' declared here
- (void)application:(UIApplication*)application
^
/Users/liandian/development/flutter/.pub-cache/hosted/pub.flutter-io.cn/jpush_flutter-2.1.5/ios/Classes/JPushPlugin.m:553:74: warning: 'UIUserNotificationTypeSound' is deprecated: first deprecated in iOS 10.0 - Use UserNotifications Framework's UNAuthorizationOptions [-Wdeprecated-declarations]
@"sound" : [NSNumber numberWithBool:notificationSettings.types & UIUserNotificationTypeSound],
^
In module 'UIKit' imported from /Users/liandian/workspace/AndroidStudioProjects/fmios/ios/Pods/Target Support Files/jpush_flutter/jpush_flutter-prefix.pch:2:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.5.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/liandian/development/flutter/.pub-cache/hosted/pub.flutter-io.cn/jpush_flutter-2.1.5/ios/Classes/JPushPlugin.m:554:74: warning: 'UIUserNotificationTypeBadge' is deprecated: first deprecated in iOS 10.0 - Use UserNotifications Framework's UNAuthorizationOptions [-Wdeprecated-declarations]
@"badge" : [NSNumber numberWithBool:notificationSettings.types & UIUserNotificationTypeBadge],
^
In module 'UIKit' imported from /Users/liandian/workspace/AndroidStudioProjects/fmios/ios/Pods/Target Support Files/jpush_flutter/jpush_flutter-prefix.pch:2:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.5.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/liandian/development/flutter/.pub-cache/hosted/pub.flutter-io.cn/jpush_flutter-2.1.5/ios/Classes/JPushPlugin.m:555:74: 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/liandian/workspace/AndroidStudioProjects/fmios/ios/Pods/Target Support Files/jpush_flutter/jpush_flutter-prefix.pch:2:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.5.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/liandian/development/flutter/.pub-cache/hosted/pub.flutter-io.cn/jpush_flutter-2.1.5/ios/Classes/JPushPlugin.m:570:1: warning: implementing deprecated method [-Wdeprecated-implementations]
-(void)application:(UIApplication *)application didReceiveLocalNotification:(UILocalNotification *)notification {
^
In module 'Flutter' imported from /Users/liandian/development/flutter/.pub-cache/hosted/pub.flutter-io.cn/jpush_flutter-2.1.5/ios/Classes/JPushPlugin.h:1:
/Users/liandian/development/flutter/bin/cache/artifacts/engine/ios/Flutter.xcframework/ios-arm64_armv7/Flutter.framework/Headers/FlutterPlugin.h:98:1: note: method 'application:didReceiveLocalNotification:' declared here
- (void)application:(UIApplication*)application
^
/Users/liandian/development/flutter/.pub-cache/hosted/pub.flutter-io.cn/jpush_flutter-2.1.5/ios/Classes/JPushPlugin.m:606:168: warning: conflicting parameter types in implementation of 'jpushNotificationCenter:didReceiveNotificationResponse:withCompletionHandler:': 'void (^__strong)(void)' vs 'void (^__strong)()' [-Wmismatched-parameter-types]
- (void)jpushNotificationCenter:(UNUserNotificationCenter *)center didReceiveNotificationResponse:(UNNotificationResponse *)response withCompletionHandler:(void (^)())completionHandler API_AVAILABLE(ios(10.0)){
~~~~~~~~~~ ^
In file included from /Users/liandian/development/flutter/.pub-cache/hosted/pub.flutter-io.cn/jpush_flutter-2.1.5/ios/Classes/JPushPlugin.m:6:
/Users/liandian/workspace/AndroidStudioProjects/fmios/ios/Pods/Headers/Private/JPush/JPUSHService.h:803:171: note: previous definition is here
- (void)jpushNotificationCenter:(UNUserNotificationCenter *)center didReceiveNotificationResponse:(UNNotificationResponse *)response withCompletionHandler:(void(^)(void))completionHandler;
~~~~~~~~~~~~~ ^
/Users/liandian/development/flutter/.pub-cache/hosted/pub.flutter-io.cn/jpush_flutter-2.1.5/ios/Classes/JPushPlugin.m:30:17: warning: class 'JPushPlugin' does not conform to protocol 'JPUSHRegisterDelegate' [-Wprotocol]
@implementation JPushPlugin {
^
/Users/liandian/development/flutter/.pub-cache/hosted/pub.flutter-io.cn/jpush_flutter-2.1.5/ios/Classes/JPushPlugin.m:30:17: note: add stubs for missing protocol requirements
18 warnings generated.
/Users/liandian/development/flutter/.pub-cache/hosted/pub.flutter-io.cn/flutter_sound-8.3.12/ios/Classes/FlutterSoundRecorderManager.mm:99:37: warning: comparison of distinct pointer types ('FlutterSoundRecorder *' and 'NSNull * _Nonnull') [-Wcompare-distinct-pointer-types]
if (aFlautoRecorder != [NSNull null])
~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~
1 warning generated.
2 warnings generated.
/Users/liandian/development/flutter/.pub-cache/hosted/pub.flutter-io.cn/flutter_sound-8.3.12/ios/Classes/FlutterSoundPlayer.mm:80:94: warning: implicit boolean conversion of Objective-C object literal always evaluates to true [-Wobjc-literal-conversion]
[self invokeMethod:@"needSomeFood" numberArg: [NSNumber numberWithInt: ln] success: @YES ];
~ ^~~~
/Users/liandian/development/flutter/.pub-cache/hosted/pub.flutter-io.cn/flutter_sound-8.3.12/ios/Classes/FlutterSoundPlayer.mm:100:80: warning: implicit boolean conversion of Objective-C object literal always evaluates to true [-Wobjc-literal-conversion]
[self invokeMethod:@"pause" numberArg: [self getPlayerStatus] success: @YES ];
~ ^~~~
/Users/liandian/development/flutter/.pub-cache/hosted/pub.flutter-io.cn/flutter_sound-8.3.12/ios/Classes/FlutterSoundPlayer.mm:105:82: warning: implicit boolean conversion of Objective-C object literal always evaluates to true [-Wobjc-literal-conversion]
[self invokeMethod:@"resume" numberArg: [self getPlayerStatus] success: @YES ];
~ ^~~~
/Users/liandian/development/flutter/.pub-cache/hosted/pub.flutter-io.cn/flutter_sound-8.3.12/ios/Classes/FlutterSoundPlayer.mm:110:87: warning: implicit boolean conversion of Objective-C object literal always evaluates to true [-Wobjc-literal-conversion]
[self invokeMethod:@"skipForward" numberArg: [self getPlayerStatus] success: @YES ];
~ ^~~~
/Users/liandian/development/flutter/.pub-cache/hosted/pub.flutter-io.cn/flutter_sound-8.3.12/ios/Classes/FlutterSoundPlayer.mm:116:88: warning: implicit boolean conversion of Objective-C object literal always evaluates to true [-Wobjc-literal-conversion]
[self invokeMethod:@"skipBackward" numberArg: [self getPlayerStatus] success: @YES ];
~ ^~~~
5 warnings generated.
/Users/liandian/development/flutter/.pub-cache/hosted/pub.flutter-io.cn/flutter_sound-8.3.12/ios/Classes/FlutterSoundManager.m:33:17: warning: class 'FlutterSoundManager' does not conform to protocol 'FlutterPlugin' [-Wprotocol]
@implementation FlutterSoundManager
^
/Users/liandian/development/flutter/.pub-cache/hosted/pub.flutter-io.cn/flutter_sound-8.3.12/ios/Classes/FlutterSoundManager.m:33:17: note: add stubs for missing protocol requirements
@implementation FlutterSoundManager
^
/Users/liandian/development/flutter/.pub-cache/hosted/pub.flutter-io.cn/flutter_sound-8.3.12/ios/Classes/FlutterSoundManager.m:107:17: warning: method definition for 'reset:result:' not found [-Wincomplete-implementation]
@implementation Session
^
In file included from /Users/liandian/development/flutter/.pub-cache/hosted/pub.flutter-io.cn/flutter_sound-8.3.12/ios/Classes/FlutterSoundManager.m:29:
/Users/liandian/development/flutter/.pub-cache/hosted/pub.flutter-io.cn/flutter_sound-8.3.12/ios/Classes/FlutterSoundManager.h:40:1: note: method 'reset:result:' declared here
- (void)reset: (FlutterMethodCall*)call result: (FlutterResult)result;
^
/Users/liandian/development/flutter/.pub-cache/hosted/pub.flutter-io.cn/flutter_sound-8.3.12/ios/Classes/FlutterSoundManager.m:107:17: warning: method definition for 'getStatus' not found [-Wincomplete-implementation]
@implementation Session
^
In file included from /Users/liandian/development/flutter/.pub-cache/hosted/pub.flutter-io.cn/flutter_sound-8.3.12/ios/Classes/FlutterSoundManager.m:29:
/Users/liandian/development/flutter/.pub-cache/hosted/pub.flutter-io.cn/flutter_sound-8.3.12/ios/Classes/FlutterSoundManager.h:41:1: note: method 'getStatus' declared here
- (int) getStatus;
^
/Users/liandian/development/flutter/.pub-cache/hosted/pub.flutter-io.cn/flutter_sound-8.3.12/ios/Classes/FlutterSoundManager.m:107:17: warning: method definition for 'freeSlot:' not found [-Wincomplete-implementation]
@implementation Session
^
In file included from /Users/liandian/development/flutter/.pub-cache/hosted/pub.flutter-io.cn/flutter_sound-8.3.12/ios/Classes/FlutterSoundManager.m:29:
/Users/liandian/development/flutter/.pub-cache/hosted/pub.flutter-io.cn/flutter_sound-8.3.12/ios/Classes/FlutterSoundManager.h:50:1: note: method 'freeSlot:' declared here
- (void)freeSlot: (int)slotNo;
^
/Users/liandian/development/flutter/.pub-cache/hosted/pub.flutter-io.cn/flutter_sound-8.3.12/ios/Classes/FlutterSoundManager.m:107:17: warning: method definition for 'invokeMethod:arguments:' not found [-Wincomplete-implementation]
@implementation Session
^
In file included from /Users/liandian/development/flutter/.pub-cache/hosted/pub.flutter-io.cn/flutter_sound-8.3.12/ios/Classes/FlutterSoundManager.m:29:
/Users/liandian/development/flutter/.pub-cache/hosted/pub.flutter-io.cn/flutter_sound-8.3.12/ios/Classes/FlutterSoundManager.h:51:1: note: method 'invokeMethod:arguments:' declared here
- (void)invokeMethod: (NSString*)methodName arguments: (NSDictionary*)call ;
^
5 warnings generated.
2 warnings generated.
While building module 'MAMapKit' imported from /Users/liandian/development/flutter/.pub-cache/hosted/pub.flutter-io.cn/amap_flutter_map-2.0.2/ios/Classes/Category/MAPolylineRenderer+Flutter.h:8:
In file included from <module-includes>:1:
/Users/liandian/workspace/AndroidStudioProjects/fmios/ios/Pods/AMap3DMap/MAMapKit.framework/Headers/MAMapKit.h:74:1: warning: umbrella header for module 'MAMapKit' does not include header 'MATerrainOverlay.h' [-Wincomplete-umbrella]
/Users/liandian/workspace/AndroidStudioProjects/fmios/ios/Pods/AMap3DMap/MAMapKit.framework/Headers/MAMapKit.h:74:1: warning: umbrella header for module 'MAMapKit' does not include header 'MATerrainOverlayRenderer.h' [-Wincomplete-umbrella]
2 warnings generated.
2 warnings generated.
While building module 'MAMapKit' imported from /Users/liandian/development/flutter/.pub-cache/hosted/pub.flutter-io.cn/amap_flutter_map-2.0.2/ios/Classes/Category/MAPolyline+Flutter.h:8:
In file included from <module-includes>:1:
/Users/liandian/workspace/AndroidStudioProjects/fmios/ios/Pods/AMap3DMap/MAMapKit.framework/Headers/MAMapKit.h:74:1: warning: umbrella header for module 'MAMapKit' does not include header 'MATerrainOverlay.h' [-Wincomplete-umbrella]
/Users/liandian/workspace/AndroidStudioProjects/fmios/ios/Pods/AMap3DMap/MAMapKit.framework/Headers/MAMapKit.h:74:1: warning: umbrella header for module 'MAMapKit' does not include header 'MATerrainOverlayRenderer.h' [-Wincomplete-umbrella]
2 warnings generated.
2 warnings generated.
While building module 'MAMapKit' imported from /Users/liandian/development/flutter/.pub-cache/hosted/pub.flutter-io.cn/amap_flutter_map-2.0.2/ios/Classes/Category/MAPolygonRenderer+Flutter.h:8:
In file included from <module-includes>:1:
/Users/liandian/workspace/AndroidStudioProjects/fmios/ios/Pods/AMap3DMap/MAMapKit.framework/Headers/MAMapKit.h:74:1: warning: umbrella header for module 'MAMapKit' does not include header 'MATerrainOverlay.h' [-Wincomplete-umbrella]
/Users/liandian/workspace/AndroidStudioProjects/fmios/ios/Pods/AMap3DMap/MAMapKit.framework/Headers/MAMapKit.h:74:1: warning: umbrella header for module 'MAMapKit' does not include header 'MATerrainOverlayRenderer.h' [-Wincomplete-umbrella]
2 warnings generated.
2 warnings generated.
While building module 'MAMapKit' imported from /Users/liandian/development/flutter/.pub-cache/hosted/pub.flutter-io.cn/amap_flutter_map-2.0.2/ios/Classes/Category/MAPolygon+Flutter.h:8:
In file included from <module-includes>:1:
/Users/liandian/workspace/AndroidStudioProjects/fmios/ios/Pods/AMap3DMap/MAMapKit.framework/Headers/MAMapKit.h:74:1: warning: umbrella header for module 'MAMapKit' does not include header 'MATerrainOverlay.h' [-Wincomplete-umbrella]
/Users/liandian/workspace/AndroidStudioProjects/fmios/ios/Pods/AMap3DMap/MAMapKit.framework/Headers/MAMapKit.h:74:1: warning: umbrella header for module 'MAMapKit' does not include header 'MATerrainOverlayRenderer.h' [-Wincomplete-umbrella]
2 warnings generated.
2 warnings generated.
While building module 'MAMapKit' imported from /Users/liandian/development/flutter/.pub-cache/hosted/pub.flutter-io.cn/amap_flutter_map-2.0.2/ios/Classes/Category/MAPointAnnotation+Flutter.h:8:
In file included from <module-includes>:1:
/Users/liandian/workspace/AndroidStudioProjects/fmios/ios/Pods/AMap3DMap/MAMapKit.framework/Headers/MAMapKit.h:74:1: warning: umbrella header for module 'MAMapKit' does not include header 'MATerrainOverlay.h' [-Wincomplete-umbrella]
/Users/liandian/workspace/AndroidStudioProjects/fmios/ios/Pods/AMap3DMap/MAMapKit.framework/Headers/MAMapKit.h:74:1: warning: umbrella header for module 'MAMapKit' does not include header 'MATerrainOverlayRenderer.h' [-Wincomplete-umbrella]
2 warnings generated.
2 warnings generated.
/Users/liandian/development/flutter/.pub-cache/hosted/pub.flutter-io.cn/amap_flutter_map-2.0.2/ios/Classes/AMapViewController.m:300:24: warning: initializing 'MAPointAnnotation *__strong' with an expression of incompatible type '__strong id<MAAnnotation>'
MAPointAnnotation *fAnno = annotation;
^ ~~~~~~~~~~
/Users/liandian/development/flutter/.pub-cache/hosted/pub.flutter-io.cn/amap_flutter_map-2.0.2/ios/Classes/AMapViewController.m:324:28: warning: initializing 'MAPointAnnotation *__strong' with an expression of incompatible type 'id<MAAnnotation>'
MAPointAnnotation *fAnno = view.annotation;
^ ~~~~~~~~~~~~~~~
/Users/liandian/development/flutter/.pub-cache/hosted/pub.flutter-io.cn/amap_flutter_map-2.0.2/ios/Classes/AMapViewController.m:353:24: warning: initializing 'MAPointAnnotation *__strong' with an expression of incompatible type 'id<MAAnnotation>'
MAPointAnnotation *fAnno = view.annotation;
^ ~~~~~~~~~~~~~~~
/Users/liandian/development/flutter/.pub-cache/hosted/pub.flutter-io.cn/amap_flutter_map-2.0.2/ios/Classes/AMapViewController.m:370:28: warning: initializing 'MAPointAnnotation *__strong' with an expression of incompatible type 'id<MAAnnotation>'
MAPointAnnotation *fAnno = view.annotation;
^ ~~~~~~~~~~~~~~~
4 warnings generated.
In file included from /Users/liandian/workspace/AndroidStudioProjects/fmios/ios/Pods/Toast/Toast/UIView+Toast.m:26:
/Users/liandian/workspace/AndroidStudioProjects/fmios/ios/Pods/Toast/Toast/UIView+Toast.h:282:31: warning: 'NSTextAlignment' is only available on iOS 6.0 or newer [-Wunguarded-availability]
@property (assign, nonatomic) NSTextAlignment titleAlignment;
^
In module 'UIKit' imported from /Users/liandian/workspace/AndroidStudioProjects/fmios/ios/Pods/Target Support Files/Toast/Toast-prefix.pch:2:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.5.sdk/System/Library/Frameworks/UIKit.framework/Headers/NSText.h:20:28: note: 'NSTextAlignment' has been marked as being introduced in iOS 6.0 here, but the deployment target is iOS 4.3.0
typedef NS_ENUM(NSInteger, NSTextAlignment) {
^
In file included from /Users/liandian/workspace/AndroidStudioProjects/fmios/ios/Pods/Toast/Toast/UIView+Toast.m:26:
/Users/liandian/workspace/AndroidStudioProjects/fmios/ios/Pods/Toast/Toast/UIView+Toast.h:221:12: note: annotate 'CSToastStyle' with an availability attribute to silence this warning
@interface CSToastStyle : NSObject
^
/Users/liandian/workspace/AndroidStudioProjects/fmios/ios/Pods/Toast/Toast/UIView+Toast.h:287:31: warning: 'NSTextAlignment' is only available on iOS 6.0 or newer [-Wunguarded-availability]
@property (assign, nonatomic) NSTextAlignment messageAlignment;
^
In module 'UIKit' imported from /Users/liandian/workspace/AndroidStudioProjects/fmios/ios/Pods/Target Support Files/Toast/Toast-prefix.pch:2:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.5.sdk/System/Library/Frameworks/UIKit.framework/Headers/NSText.h:20:28: note: 'NSTextAlignment' has been marked as being introduced in iOS 6.0 here, but the deployment target is iOS 4.3.0
typedef NS_ENUM(NSInteger, NSTextAlignment) {
^
In file included from /Users/liandian/workspace/AndroidStudioProjects/fmios/ios/Pods/Toast/Toast/UIView+Toast.m:26:
/Users/liandian/workspace/AndroidStudioProjects/fmios/ios/Pods/Toast/Toast/UIView+Toast.h:221:12: note: annotate 'CSToastStyle' with an availability attribute to silence this warning
@interface CSToastStyle : NSObject
^
/Users/liandian/workspace/AndroidStudioProjects/fmios/ios/Pods/Toast/Toast/UIView+Toast.m:265:36: warning: 'NSLineBreakByTruncatingTail' is only available on iOS 6.0 or newer [-Wunguarded-availability]
titleLabel.lineBreakMode = NSLineBreakByTruncatingTail;
^~~~~~~~~~~~~~~~~~~~~~~~~~~
In module 'UIKit' imported from /Users/liandian/workspace/AndroidStudioProjects/fmios/ios/Pods/Target Support Files/Toast/Toast-prefix.pch:2:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.5.sdk/System/Library/Frameworks/UIKit.framework/Headers/NSParagraphStyle.h:20:28: note: 'NSLineBreakMode' has been marked as being introduced in iOS 6.0 here, but the deployment target is iOS 4.3.0
typedef NS_ENUM(NSInteger, NSLineBreakMode) {
^
/Users/liandian/workspace/AndroidStudioProjects/fmios/ios/Pods/Toast/Toast/UIView+Toast.m:265:36: note: enclose 'NSLineBreakByTruncatingTail' in an @available check to silence this warning
titleLabel.lineBreakMode = NSLineBreakByTruncatingTail;
^~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/liandian/workspace/AndroidStudioProjects/fmios/ios/Pods/Toast/Toast/UIView+Toast.m:284:38: warning: 'NSLineBreakByTruncatingTail' is only available on iOS 6.0 or newer [-Wunguarded-availability]
messageLabel.lineBreakMode = NSLineBreakByTruncatingTail;
^~~~~~~~~~~~~~~~~~~~~~~~~~~
In module 'UIKit' imported from /Users/liandian/workspace/AndroidStudioProjects/fmios/ios/Pods/Target Support Files/Toast/Toast-prefix.pch:2:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.5.sdk/System/Library/Frameworks/UIKit.framework/Headers/NSParagraphStyle.h:20:28: note: 'NSLineBreakMode' has been marked as being introduced in iOS 6.0 here, but the deployment target is iOS 4.3.0
typedef NS_ENUM(NSInteger, NSLineBreakMode) {
^
/Users/liandian/workspace/AndroidStudioProjects/fmios/ios/Pods/Toast/Toast/UIView+Toast.m:284:38: note: enclose 'NSLineBreakByTruncatingTail' in an @available check to silence this warning
messageLabel.lineBreakMode = NSLineBreakByTruncatingTail;
^~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/liandian/workspace/AndroidStudioProjects/fmios/ios/Pods/Toast/Toast/UIView+Toast.m:477:31: warning: 'NSTextAlignmentLeft' is only available on iOS 6.0 or newer [-Wunguarded-availability]
self.titleAlignment = NSTextAlignmentLeft;
^~~~~~~~~~~~~~~~~~~
In module 'UIKit' imported from /Users/liandian/workspace/AndroidStudioProjects/fmios/ios/Pods/Target Support Files/Toast/Toast-prefix.pch:2:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.5.sdk/System/Library/Frameworks/UIKit.framework/Headers/NSText.h:20:28: note: 'NSTextAlignment' has been marked as being introduced in iOS 6.0 here, but the deployment target is iOS 4.3.0
typedef NS_ENUM(NSInteger, NSTextAlignment) {
^
/Users/liandian/workspace/AndroidStudioProjects/fmios/ios/Pods/Toast/Toast/UIView+Toast.m:477:31: note: enclose 'NSTextAlignmentLeft' in an @available check to silence this warning
self.titleAlignment = NSTextAlignmentLeft;
^~~~~~~~~~~~~~~~~~~
/Users/liandian/workspace/AndroidStudioProjects/fmios/ios/Pods/Toast/Toast/UIView+Toast.m:478:33: warning: 'NSTextAlignmentLeft' is only available on iOS 6.0 or newer [-Wunguarded-availability]
self.messageAlignment = NSTextAlignmentLeft;
^~~~~~~~~~~~~~~~~~~
In module 'UIKit' imported from /Users/liandian/workspace/AndroidStudioProjects/fmios/ios/Pods/Target Support Files/Toast/Toast-prefix.pch:2:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.5.sdk/System/Library/Frameworks/UIKit.framework/Headers/NSText.h:20:28: note: 'NSTextAlignment' has been marked as being introduced in iOS 6.0 here, but the deployment target is iOS 4.3.0
typedef NS_ENUM(NSInteger, NSTextAlignment) {
^
/Users/liandian/workspace/AndroidStudioProjects/fmios/ios/Pods/Toast/Toast/UIView+Toast.m:478:33: note: enclose 'NSTextAlignmentLeft' in an @available check to silence this warning
self.messageAlignment = NSTextAlignmentLeft;
^~~~~~~~~~~~~~~~~~~
6 warnings generated.
/Users/liandian/workspace/AndroidStudioProjects/fmios/ios/Pods/FMDB/src/fmdb/FMDatabaseQueue.m:101:9: warning: 'dispatch_queue_set_specific' is only available on iOS 5.0 or newer [-Wunguarded-availability]
dispatch_queue_set_specific(_queue, kDispatchQueueSpecificKey, (__bridge void *)self, NULL);
^~~~~~~~~~~~~~~~~~~~~~~~~~~
In module 'Foundation' imported from /Users/liandian/workspace/AndroidStudioProjects/fmios/ios/Pods/FMDB/src/fmdb/FMDatabaseQueue.h:9:
In module 'CoreFoundation' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.5.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:6:
In module 'Dispatch' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.5.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFStream.h:20:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.5.sdk/usr/include/dispatch/queue.h:1498:1: note: 'dispatch_queue_set_specific' has been marked as being introduced in iOS 5.0 here, but the deployment target is iOS 4.3.0
dispatch_queue_set_specific(dispatch_queue_t queue, const void *key,
^
/Users/liandian/workspace/AndroidStudioProjects/fmios/ios/Pods/FMDB/src/fmdb/FMDatabaseQueue.m:101:9: note: enclose 'dispatch_queue_set_specific' in an @available check to silence this warning
dispatch_queue_set_specific(_queue, kDispatchQueueSpecificKey, (__bridge void *)self, NULL);
^~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/liandian/workspace/AndroidStudioProjects/fmios/ios/Pods/FMDB/src/fmdb/FMDatabaseQueue.m:184:54: warning: 'dispatch_get_specific' is only available on iOS 5.0 or newer [-Wunguarded-availability]
FMDatabaseQueue *currentSyncQueue = (__bridge id)dispatch_get_specific(kDispatchQueueSpecificKey);
^~~~~~~~~~~~~~~~~~~~~
In module 'Foundation' imported from /Users/liandian/workspace/AndroidStudioProjects/fmios/ios/Pods/FMDB/src/fmdb/FMDatabaseQueue.h:9:
In module 'CoreFoundation' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.5.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:6:
In module 'Dispatch' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.5.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFStream.h:20:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.5.sdk/usr/include/dispatch/queue.h:1554:1: note: 'dispatch_get_specific' has been marked as being introduced in iOS 5.0 here, but the deployment target is iOS 4.3.0
dispatch_get_specific(const void *key);
^
/Users/liandian/workspace/AndroidStudioProjects/fmios/ios/Pods/FMDB/src/fmdb/FMDatabaseQueue.m:184:54: note: enclose 'dispatch_get_specific' in an @available check to silence this warning
FMDatabaseQueue *currentSyncQueue = (__bridge id)dispatch_get_specific(kDispatchQueueSpecificKey);
^~~~~~~~~~~~~~~~~~~~~
2 warnings generated.
1 warning generated.
Failed to package /Users/liandian/workspace/AndroidStudioProjects/fmios.
Command PhaseScriptExecution failed with a nonzero exit code
note: Using new build system
note: Building targets in parallel
note: Planning build
note: Analyzing workspace
note: Constructing build description
note: Build preparation complete
/Users/liandian/workspace/AndroidStudioProjects/fmios/ios/Pods/Pods.xcodeproj: warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 4.3, but the range of supported deployment target versions is 9.0 to 14.5.99. (in target 'Toast' from project 'Pods')
/Users/liandian/workspace/AndroidStudioProjects/fmios/ios/Pods/Pods.xcodeproj: warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 4.3, but the range of supported deployment target versions is 9.0 to 14.5.99. (in target 'FMDB' from project 'Pods')
/Users/liandian/workspace/AndroidStudioProjects/fmios/ios/Pods/Pods.xcodeproj: warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 7.0, but the range of supported deployment target versions is 9.0 to 14.5.99. (in target 'JCore' from project 'Pods')
/Users/liandian/workspace/AndroidStudioProjects/fmios/ios/Pods/Pods.xcodeproj: warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 6.0, but the range of supported deployment target versions is 9.0 to 14.5.99. (in target 'JPush' from project 'Pods')
/Users/liandian/workspace/AndroidStudioProjects/fmios/ios/Pods/Pods.xcodeproj: warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 7.0, but the range of supported deployment target versions is 9.0 to 14.5.99. (in target 'AMapFoundation' from project 'Pods')
Could not build the precompiled application for the device.
Error launching application on Junhai的 iPhone.
开发环境:
macOs Big Sur版本11.4
Flutter 2.5.1 • channel stable • https://github.com/flutter/fl...
Framework • revision ffb2ecea52 (3 weeks ago) • 2021-09-17 15:26:33 -0400
Engine • revision b3af521a05
Tools • Dart 2.14.2
Android Studio Arctic Fox | 2020.3.1 Patch 2
XCode: Version 12.5.1 (12E507)
不知道有没有人遇到这样的情况,请问怎么解决?