-
Notifications
You must be signed in to change notification settings - Fork 450
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
flutter run报错 #18
Comments
拉取一下最新的代码,应该可以了 |
目前配置为:
|
可以了🥳,不过可以讲一下原因和解决方法吗? |
就是部分插件在当前flutter版本下无法使用的问题,更新一下就好了 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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 {
^
Could not build the application for the simulator.
Error launching application on iPhone SE (2nd generation).
The text was updated successfully, but these errors were encountered: