Open dylan-7 opened 4 years ago
拉取一下最新的代码,应该可以了
目前配置为:
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 1.20.2, on Mac OS X 10.15.3 19D76, locale zh-Hans-CN)
[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.3)
[✓] Xcode - develop for iOS and macOS (Xcode 11.1)
[✓] Android Studio (version 4.0)
[✓] VS Code (version 1.43.1)
[!] Connected device
! Doctor found issues in 1 category.
可以了🥳,不过可以讲一下原因和解决方法吗?
可以了🥳,不过可以讲一下原因和解决方法吗?
就是部分插件在当前flutter版本下无法使用的问题,更新一下就好了
Launching lib/main.dart on iPhone SE (2nd generation) in debug mode... Running pod install... 1.4s Running Xcode build...
Xcode build done. 14.0s Failed to build iOS app Error output from Xcode build: ↳ BUILD FAILED
Xcode's output: ↳ /Users/lee/.pub-cache/hosted/pub.flutter-io.cn/permission_handler-4.4.0+hotfix.4/ios/Class es/strategies/NotificationPermissionStrategy.m:71:5: warning: 'UIRemoteNotificationType' is deprecated: first deprecated in iOS 8.0 - Use UserNotifications Framework's UNAuthorizationOptions for user notifications and registerForRemoteNotifications for receiving remote notifications instead. [-Wdeprecated-declarations] UIRemoteNotificationType type = [[UIApplication sharedApplication] enabledRemoteNotificationTypes]; ^ In module 'UIKit' imported from /Users/lee/flutterApp/flutter-todos/ios/Pods/Target Support Files/permission_handler/permission_handler-prefix.pch:2: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPh oneSimulator13.6.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIApplication.h:69:32: note: 'UIRemoteNotificationType' has been explicitly marked deprecated here typedef NS_OPTIONS(NSUInteger, UIRemoteNotificationType) { ^ /Users/lee/.pub-cache/hosted/pub.flutter-io.cn/permission_handler-4.4.0+hotfix.4/ios/Class es/strategies/NotificationPermissionStrategy.m:71:72: warning: 'enabledRemoteNotificationTypes' is deprecated: first deprecated in iOS 8.0 - Use -[UIApplication isRegisteredForRemoteNotifications] and UserNotifications Framework's -[UNUserNotificationCenter getNotificationSettingsWithCompletionHandler:] to retrieve user-enabled remote notification and user notification settings [-Wdeprecated-declarations] UIRemoteNotificationType type = [[UIApplication sharedApplication] enabledRemoteNotificationTypes]; ^ In module 'UIKit' imported from /Users/lee/flutterApp/flutter-todos/ios/Pods/Target Support Files/permission_handler/permission_handler-prefix.pch:2: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPh oneSimulator13.6.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIApplication.h:229:1: note: 'enabledRemoteNotificationTypes' has been explicitly marked deprecated here
(UIRemoteNotificationType)enabledRemoteNotificationTypes API_DEPRECATED("Use -[UIApplication isRegisteredForRemoteNotifications] and UserNotifications Framework's -[UNUserNotificationCenter getNotificationSettingsWithCompletionHandler:] to retrieve user-enabled remote notification and user notification settings", ios(3.0, 8.0)) API_UNAVAILABLE(tvos); ^ 2 warnings generated. ../../.pub-cache/hosted/pub.flutter-io.cn/dio-2.2.2/lib/src/dio_http_headers.dart:55:8: Error: The method 'DioHttpHeaders.add' has fewer named arguments than those of overridden method 'HttpHeaders.add'. void add(String name, value) { ^ org-dartlang-sdk:///third_party/dart/sdk/lib/_http/http.dart:699:8: Context: This is the overridden method ('add'). void add(String name, Object value, ^ ../../.pub-cache/hosted/pub.flutter-io.cn/dio-2.2.2/lib/src/dio_http_headers.dart:70:8: Error: The method 'DioHttpHeaders.set' has fewer named arguments than those of overridden method 'HttpHeaders.set'. void set(String name, Object value) { ^ org-dartlang-sdk:///third_party/dart/sdk/lib/_http/http.dart:708:8: Context: This is the overridden method ('set'). void set(String name, Object value, ^ ../../.pub-cache/hosted/pub.flutter-io.cn/flutter_svg-0.13.1/lib/src/picture_stream.dart:92:3: Error: The superclass, 'Diagnosticable', has no unnamed constructor that takes no arguments. PictureStream(); ^^^^^^^^^^^^^ ../../.pub-cache/hosted/pub.flutter-io.cn/flutter_svg-0.13.1/lib/src/picture_stream.dart:192:16: Error: The superclass, 'Diagnosticable', has no unnamed constructor that takes no arguments. abstract class PictureStreamCompleter extends Diagnosticable { ^
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 warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 4.3, but the range of supported deployment target versions is 8.0 to 13.6.99. (in target 'FMDB' from project 'Pods')
Could not build the application for the simulator. Error launching application on iPhone SE (2nd generation).