XianyuTech / hybrid_stack_manager

Used for stack management in hybrid scenarios.
MIT License
163 stars 17 forks source link

example运行不成功啊 #1

Open badaozhenjun opened 5 years ago

badaozhenjun commented 5 years ago
Automatically signing iOS for device deployment using specified development team in Xcode project: VP3AM7E5ZL
Running pod install...
Starting Xcode build...
Xcode build done.                                            3.3s
Failed to build iOS app
Error output from Xcode build:
↳
    2018-11-23 13:43:10.667 xcodebuild[47959:716695] +dataWithFirstBytes:1024 ofFile:"/Users/liuyuxiao/Documents/hybrid_stack_manager-master/ios/LICENSE" failed, errno = 2
    ** BUILD FAILED **

Xcode's output:
↳
    === BUILD TARGET path_provider OF PROJECT Pods WITH CONFIGURATION Debug ===
    In file included from /Users/liuyuxiao/Documents/hybrid_stack_manager-master/ios/Classes/FlutterViewWrapperController.m:9:
    /Users/liuyuxiao/Documents/hybrid_stack_manager-master/ios/Classes/FlutterViewWrapperController.h:9:9: fatal error: 'Flutter/Flutter.h' file not found
    #import <Flutter/Flutter.h>
            ^~~~~~~~~~~~~~~~~~~
    1 error generated.

Could not build the precompiled application for the device.

It appears that your application still contains the default signing identifier.
Try replacing 'com.example' with your signing id in Xcode:
  open ios/Runner.xcworkspace

Error launching application on iPhone.
badaozhenjun commented 5 years ago

android 也运行不成功

Compiler message:
file:///E:/flutterproject/hybrid_stack_manager-master2/hybrid_stack_manager-master/lib/router.dart:69:49: Error: The getter 'history' isn't defined for the class '#lib1::NavigatorState'.
Try correcting the name to the name of an existing getter, or defining a getter or field named 'history'.
        XMaterialPageRoute pageRoute = navState.history.firstWhere((Route route){
                                                ^^^^^^^
file:///E:/flutterproject/hybrid_stack_manager-master2/hybrid_stack_manager-master/lib/router.dart:86:48: Error: The getter 'history' isn't defined for the class '#lib1::NavigatorState'.
Try correcting the name to the name of an existing getter, or defining a getter or field named 'history'.
    List<Route<dynamic>> navHistory = navState.history;
                                               ^^^^^^^
file:///E:/flutterproject/hybrid_stack_manager-master2/hybrid_stack_manager-master/lib/router.dart:96:48: Error: The getter 'history' isn't defined for the class '#lib1::NavigatorState'.
Try correcting the name to the name of an existing getter, or defining a getter or field named 'history'.
    List<Route<dynamic>> navHistory = navState.history;
                                               ^^^^^^^
file:///E:/flutterproject/hybrid_stack_manager-master2/hybrid_stack_manager-master/lib/router.dart:111:48: Error: The getter 'history' isn't defined for the class '#lib1::NavigatorState'.
Try correcting the name to the name of an existing getter, or defining a getter or field named 'history'.
    List<Route<dynamic>> navHistory = navState.history;
                                               ^^^^^^^
file:///E:/flutterproject/hybrid_stack_manager-master2/hybrid_stack_manager-master/lib/router.dart:146:48: Error: The getter 'history' isn't defined for the class '#lib1::NavigatorState'.
Try correcting the name to the name of an existing getter, or defining a getter or field named 'history'.
    List<Route<dynamic>> navHistory = navState.history;
                                               ^^^^^^^
Compiler failed on E:\flutterproject\hybrid_stack_manager-master2\hybrid_stack_manager-master\example\lib\main.dart
Finished with error: Gradle task assembleDebug failed with exit code 1
wang-yaoqing commented 5 years ago

iOS 这需要把 引用到 这个地方#import <Flutter/Flutter.h>,修改成 #import <Flutter/Flutter/Flutter.h>。

moyaying commented 5 years ago

16:35:04.746 23 info flutter.tools /hybrid_stack_manager/lib/router.dart:146:48: Error: The getter 'history' isn't defined for the class '#lib1::NavigatorState'. 16:35:04.746 24 info flutter.tools Try correcting the name to the name of an existing getter, or defining a getter or field named 'history'.

这是什么情况呢??

moyaying commented 5 years ago

好像是版本升级把变量私有化了,希望官方抓紧时间更新一下!

kangwang1988 commented 5 years ago

看下README.md image

后续我会看下是否能够不用改框架就满足需求。

kangwang1988 commented 5 years ago

@moyaying

moyaying commented 5 years ago

哦,是这样。我没往改框架代码这一方向想。。。 谢谢你,也更期待优雅解决。

在 2018年12月14日,上午9:53,KyleWong notifications@github.com 写道:

看下README.md https://user-images.githubusercontent.com/817851/49978563-1ce0df80-ff86-11e8-98d4-a745182026ee.png 后续我会看下是否能够不用改框架就满足需求。

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/alibaba-flutter/hybrid_stack_manager/issues/1#issuecomment-447185876, or mute the thread https://github.com/notifications/unsubscribe-auth/AF0YVPTgrm8pK9rj83Wu-73xqlSiACZRks5u4wSwgaJpZM4YwI4B.

SeongBrave commented 5 years ago

navState.history 新版本的Flutter应该不支持了吧

kangwang1988 commented 5 years ago

Again, Read README first.

SeongBrave commented 5 years ago

@kangwang1988 👏解决了