Skip to content
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 无法运行 #729

Closed
kiradea opened this issue Aug 8, 2020 · 7 comments
Closed

flutter run 无法运行 #729

kiradea opened this issue Aug 8, 2020 · 7 comments

Comments

@kiradea
Copy link

kiradea commented Aug 8, 2020

Running "flutter pub get" in gsy_github_app_flutter... 1.2s
Launching lib/main.dart on iPhone SE (2nd generation) in debug mode...

Running pod install... 2.7s
Running Xcode build...

Xcode build done. 29.5s
Failed to build iOS app
Error output from Xcode build:

2020-08-08 16:25:47.723 xcodebuild[8369:98415] [MT] DVTPlugInManager: Required plug-in compatibility UUID C80A9C11-3902-4885-944E-A035869BA910 for KSImageNamed.ideplugin
(com.ksuther.KSImageNamed) not present
** BUILD FAILED **

Xcode's output:

In file included from /Users/lijun/development/flutter/.pub-cache/hosted/pub.flutter-io.cn/fluttertoast-4.0.1/ios/Classes/UIView+Toast.m:26:
/Users/lijun/development/flutter/.pub-cache/hosted/pub.flutter-io.cn/fluttertoast-4.0.1/ios/Classes/UIView+Toast.h:328:19: warning: empty paragraph passed to '@param' command
[-Wdocumentation]
@param sharedStyle
~~~~~~~~~~~~~~~~~^
/Users/lijun/development/flutter/.pub-cache/hosted/pub.flutter-io.cn/fluttertoast-4.0.1/ios/Classes/UIView+Toast.h:343:25: warning: empty paragraph passed to '@param' command
[-Wdocumentation]
@param allowTapToDismiss
~~~~~~~~~~~~~~~~~~~~~~~^
/Users/lijun/development/flutter/.pub-cache/hosted/pub.flutter-io.cn/fluttertoast-4.0.1/ios/Classes/UIView+Toast.h:343:9: warning: parameter 'allowTapToDismiss' not found in the function
declaration [-Wdocumentation]
@param allowTapToDismiss
^~~~~~~~~~~~~~~~~
/Users/lijun/development/flutter/.pub-cache/hosted/pub.flutter-io.cn/fluttertoast-4.0.1/ios/Classes/UIView+Toast.h:343:9: note: did you mean 'tapToDismissEnabled'?
@param allowTapToDismiss
^~~~~~~~~~~~~~~~~
tapToDismissEnabled
/Users/lijun/development/flutter/.pub-cache/hosted/pub.flutter-io.cn/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/lijun/development/flutter/.pub-cache/hosted/pub.flutter-io.cn/fluttertoast-4.0.1/ios/Classes/FluttertoastPlugin.m:2:
/Users/lijun/development/flutter/.pub-cache/hosted/pub.flutter-io.cn/fluttertoast-4.0.1/ios/Classes/UIView+Toast.h:328:19: warning: empty paragraph passed to '@param' command
[-Wdocumentation]
@param sharedStyle
~~~~~~~~~~~~~~~~~^
/Users/lijun/development/flutter/.pub-cache/hosted/pub.flutter-io.cn/fluttertoast-4.0.1/ios/Classes/UIView+Toast.h:343:25: warning: empty paragraph passed to '@param' command
[-Wdocumentation]
@param allowTapToDismiss
~~~~~~~~~~~~~~~~~~~~~~~^
/Users/lijun/development/flutter/.pub-cache/hosted/pub.flutter-io.cn/fluttertoast-4.0.1/ios/Classes/UIView+Toast.h:343:9: warning: parameter 'allowTapToDismiss' not found in the function
declaration [-Wdocumentation]
@param allowTapToDismiss
^~~~~~~~~~~~~~~~~
/Users/lijun/development/flutter/.pub-cache/hosted/pub.flutter-io.cn/fluttertoast-4.0.1/ios/Classes/UIView+Toast.h:343:9: note: did you mean 'tapToDismissEnabled'?
@param allowTapToDismiss
^~~~~~~~~~~~~~~~~
tapToDismissEnabled
/Users/lijun/development/flutter/.pub-cache/hosted/pub.flutter-io.cn/fluttertoast-4.0.1/ios/Classes/UIView+Toast.h:362:20: warning: empty paragraph passed to '@param' command
[-Wdocumentation]
@param queueEnabled
~~~~~~~~~~~~~~~~~~^
/Users/lijun/development/flutter/.pub-cache/hosted/pub.flutter-io.cn/fluttertoast-4.0.1/ios/Classes/FluttertoastPlugin.m:19:23: warning: unused variable 'viewController' [-Wunused-variable]
UIViewController *viewController =
^
/Users/lijun/development/flutter/.pub-cache/hosted/pub.flutter-io.cn/fluttertoast-4.0.1/ios/Classes/FluttertoastPlugin.m:70:21: warning: unused variable 'topPadding' [-Wunused-variable]
CGFloat topPadding = window.safeAreaInsets.top;
^
/Users/lijun/development/flutter/.pub-cache/hosted/pub.flutter-io.cn/fluttertoast-4.0.1/ios/Classes/FluttertoastPlugin.m:71:21: warning: unused variable 'bottomPadding' [-Wunused-variable]
CGFloat bottomPadding = window.safeAreaInsets.bottom;
^
/Users/lijun/development/flutter/.pub-cache/hosted/pub.flutter-io.cn/fluttertoast-4.0.1/ios/Classes/FluttertoastPlugin.m:48:19: warning: unused variable 'size' [-Wunused-variable]
NSNumber *size = call.arguments[@"size"];
^
8 warnings generated.
error: the following command failed with exit code 0 but produced no further output
CompileC
/Users/lijun/Library/Developer/Xcode/DerivedData/Runner-chyzzdppxeuijqcdtdbmsvyylxwp/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/FMDB.build/Objects-normal/x86_64/FMDatabaseQ
ueue.o /Users/lijun/Downloads/gsy_github_app_flutter/ios/Pods/FMDB/src/fmdb/FMDatabaseQueue.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler
error: the following command failed with exit code 0 but produced no further output
CompileC
/Users/lijun/Library/Developer/Xcode/DerivedData/Runner-chyzzdppxeuijqcdtdbmsvyylxwp/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/FMDB.build/Objects-normal/x86_64/FMDatabaseP
ool.o /Users/lijun/Downloads/gsy_github_app_flutter/ios/Pods/FMDB/src/fmdb/FMDatabasePool.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler
/Users/lijun/Downloads/gsy_github_app_flutter/ios/Pods/FMDB/src/fmdb/FMDatabase.m:1252:95: warning: parameter of overriding method should be annotated with attribute((noescape))
[-Wmissing-noescape]
- (BOOL)executeStatements:(NSString *)sql withResultBlock:(FMDBExecuteStatementsCallbackBlock)block {
^
In file included from /Users/lijun/Downloads/gsy_github_app_flutter/ios/Pods/FMDB/src/fmdb/FMDatabase.m:1:
/Users/lijun/Downloads/gsy_github_app_flutter/ios/Pods/FMDB/src/fmdb/FMDatabase.h:514:131: note: parameter of overridden method is annotated with attribute((noescape))
- (BOOL)executeStatements:(NSString )sql withResultBlock:(attribute((noescape)) FMDBExecuteStatementsCallbackBlock _Nullable)block;
^
/Users/lijun/Downloads/gsy_github_app_flutter/ios/Pods/FMDB/src/fmdb/FMDatabase.m:1394:51: warning: parameter of overriding method should be annotated with attribute((noescape))
[-Wmissing-noescape]
- (NSError
)inSavePoint:(void (^)(BOOL *rollback))block {
^
In file included from /Users/lijun/Downloads/gsy_github_app_flutter/ios/Pods/FMDB/src/fmdb/FMDatabase.m:1:
/Users/lijun/Downloads/gsy_github_app_flutter/ios/Pods/FMDB/src/fmdb/FMDatabase.h:988:88: note: parameter of overridden method is annotated with attribute((noescape))
- (NSError * _Nullable)inSavePoint:(attribute((noescape)) void (^)(BOOL *rollback))block;
^
2 warnings generated.
../../development/flutter/.pub-cache/hosted/pub.flutter-io.cn/flutter_svg-0.17.4/lib/src/picture_stream.dart:88:26: Error: Type 'DiagnosticableMixin' not found.
class PictureStream with DiagnosticableMixin {
^^^^^^^^^^^^^^^^^^^
../../development/flutter/.pub-cache/hosted/pub.flutter-io.cn/flutter_svg-0.17.4/lib/src/picture_stream.dart:192:44: Error: Type 'DiagnosticableMixin' not found.
abstract class PictureStreamCompleter with DiagnosticableMixin {
^^^^^^^^^^^^^^^^^^^
../../development/flutter/.pub-cache/hosted/pub.flutter-io.cn/flutter_svg-0.17.4/lib/src/picture_stream.dart:88:7: Error: The type 'DiagnosticableMixin' can't be mixed in.
class PictureStream with DiagnosticableMixin {
^
../../development/flutter/.pub-cache/hosted/pub.flutter-io.cn/flutter_svg-0.17.4/lib/src/picture_stream.dart:192:16: Error: The type 'DiagnosticableMixin' can't be mixed in.
abstract class PictureStreamCompleter with DiagnosticableMixin {
^
../../development/flutter/.pub-cache/hosted/pub.flutter-io.cn/flutter_svg-0.17.4/lib/src/picture_stream.dart:167:11: Error: Superclass has no method named 'debugFillProperties'.
super.debugFillProperties(properties);
^^^^^^^^^^^^^^^^^^^
../../development/flutter/.pub-cache/hosted/pub.flutter-io.cn/flutter_svg-0.17.4/lib/src/picture_stream.dart:171:30: Error: The method 'toStringShort' isn't defined for the class
'PictureStreamCompleter'.
- 'PictureStreamCompleter' is from 'package:flutter_svg/src/picture_stream.dart'
('../../development/flutter/.pub-cache/hosted/pub.flutter-io.cn/flutter_svg-0.17.4/lib/src/picture_stream.dart').
Try correcting the name to the name of an existing method, or defining a method named 'toStringShort'.
ifPresent: _completer?.toStringShort(),
^^^^^^^^^^^^^
../../development/flutter/.pub-cache/hosted/pub.flutter-io.cn/flutter_svg-0.17.4/lib/src/picture_stream.dart:266:11: Error: Superclass has no method named 'debugFillProperties'.
super.debugFillProperties(description);
^^^^^^^^^^^^^^^^^^^

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 use of Swift 3 @objc inference in Swift 4 mode is deprecated. Please address deprecated @objc inference warnings, test your code with “Use of deprecated Swift 3 @objc inference”
logging enabled, and then disable inference by changing the "Swift 3 @objc Inference" build setting to "Default" for the "Runner" target. (in target 'Runner' from project 'Runner')

Could not build the application for the simulator.
Error launching application on iPhone SE (2nd generation).

@CarGuo
Copy link
Owner

CarGuo commented Aug 9, 2020

先 flutter pub get ,再确定本地 flutter sdk 1.17

@kiradea
Copy link
Author

kiradea commented Aug 9, 2020

先 flutter pub get ,再确定本地 flutter sdk 1.17

不能升级到1.20 吗?

@CarGuo
Copy link
Owner

CarGuo commented Aug 10, 2020

还没兼容呢

@CarGuo
Copy link
Owner

CarGuo commented Aug 10, 2020

更新下代码,刚刚兼容下

@CarGuo CarGuo closed this as completed Aug 10, 2020
@bolee
Copy link

bolee commented Oct 10, 2020

@CarGuo 最新1.22.0,是不是也不兼容啊

@CarGuo
Copy link
Owner

CarGuo commented Oct 11, 2020

@bolee 现在是1.20,还没升级到1.22的支持

@CarGuo
Copy link
Owner

CarGuo commented Oct 11, 2020

@bolee 已经更新 1.22.1 支持

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants