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_boost 0.0.39版本无法使用 #7

Closed
ruanchaohouzi opened this issue Mar 8, 2019 · 11 comments
Closed

flutter_boost 0.0.39版本无法使用 #7

ruanchaohouzi opened this issue Mar 8, 2019 · 11 comments

Comments

@ruanchaohouzi
Copy link

我在pubspec.yaml中配置了依赖flutter_boost: ^ 0.0.39,但是实际拉下来的版本是flutter_boost-0.0.344版本,而我从来没有配置过这个版本,导致我在main函数初始化报错,找不到registerPageBuilders方法。什么原因???
image
image

@ruanchaohouzi
Copy link
Author

依赖配置如下:
image

@Wuzo
Copy link

Wuzo commented Mar 8, 2019

我也遇到了。。

@nightwolf-chen
Copy link
Contributor

nightwolf-chen commented Mar 8, 2019

Please try to use specified version: flutter_boost: 0.0.39 in your pubspec.yaml. And run flutter packages get @ruanchaohouzi

@ruanchaohouzi
Copy link
Author

Please try to use specified version: flutter_boost: 0.0.39 in your pubspec.yaml. And run flutter packages get @ruanchaohouzi

那你的接入文档是不是要改一下?改成这个flutter_boost: 0.0.39 而不是这个flutter_boost: ^0.0.39

@Wuzo
Copy link

Wuzo commented Mar 8, 2019

Please try to use specified version: flutter_boost: 0.0.39 in your pubspec.yaml. And run flutter packages get @ruanchaohouzi

那你的接入文档是不是要改一下?改成这个flutter_boost: 0.0.39 而不是这个flutter_boost: ^0.0.39

你的工程能run了么

@ruanchaohouzi
Copy link
Author

Please try to use specified version: flutter_boost: 0.0.39 in your pubspec.yaml. And run flutter packages get @ruanchaohouzi

那你的接入文档是不是要改一下?改成这个flutter_boost: 0.0.39 而不是这个flutter_boost: ^0.0.39

你的工程能run了么

可以的 能够正常run

@Wuzo
Copy link

Wuzo commented Mar 8, 2019

Please try to use specified version: flutter_boost: 0.0.39 in your pubspec.yaml. And run flutter packages get @ruanchaohouzi

那你的接入文档是不是要改一下?改成这个flutter_boost: 0.0.39 而不是这个flutter_boost: ^0.0.39

你的工程能run了么

可以的 能够正常run
Launching lib/main.dart on wu的 iPhone in debug mode...
Automatically signing iOS for device deployment using specified development team in Xcode project: 5E5T639YE9
Xcode build done. 5.6s
Failed to build iOS app
Error output from Xcode build:

** BUILD FAILED **
Xcode's output:

=== BUILD TARGET flutter_boost OF PROJECT Pods WITH CONFIGURATION Debug ===
/Users/xxx/Desktop/Android/flutter/.pub-cache/hosted/pub.flutter-io.cn/flutter_boost-0.0.39/ios/Classes/Support/Memory/FLBMemoryInspector.mm:106:29: warning: implicit conversion loses integer precision: 'int64_t' (aka 'long long') to 'const size_t' (aka 'const unsigned long') [-Wshorten-64-to-32]
const static size_t l = _memoryWarningLimit();
~ ^~~~~~~~~~~~~~~~~~~~~
1 warning generated.
=== BUILD TARGET Runner OF PROJECT Runner WITH CONFIGURATION Debug ===
Undefined symbols for architecture arm64:
"___cxa_guard_acquire", referenced from:
getLimit() in libflutter_boost.a(FLBMemoryInspector.o)
"___cxa_guard_release", referenced from:
getLimit() in libflutter_boost.a(FLBMemoryInspector.o)
"___cxa_guard_abort", referenced from:
getLimit() in libflutter_boost.a(FLBMemoryInspector.o)
"___gxx_personality_v0", referenced from:
-[FLBMemoryInspector deviceMemory] in libflutter_boost.a(FLBMemoryInspector.o)
-[FLBMemoryInspector currentCondition] in libflutter_boost.a(FLBMemoryInspector.o)
isHighterThanIos9() in libflutter_boost.a(FLBMemoryInspector.o)
getLimit() in libflutter_boost.a(FLBMemoryInspector.o)
_memoryWarningLimit() in libflutter_boost.a(FLBMemoryInspector.o)
+[Service_NavigationService load] in libflutter_boost.a(Service_NavigationService.o)
+[Service_NavigationService onNativePageResult:uniqueId:key:resultData:params:] in libflutter_boost.a(Service_NavigationService.o)
...
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
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 wu的 iPhone.
Exited (sigterm)

。。为什么我报着个错 新建的工程

@Wuzo
Copy link

Wuzo commented Mar 8, 2019

。找到原因了

@nightwolf-chen
Copy link
Contributor

Could you please share your investigation of the problem? @Wuzo

@Wuzo
Copy link

Wuzo commented Mar 8, 2019

你能分享一下你对这个问题的调查吗?@Wuzo

刚新建的工程。没有引入 libc++.tbd
我自己犯的低级错误 打扰各位了

@nightwolf-chen
Copy link
Contributor

Thanks!

0xZOne added a commit that referenced this issue Aug 23, 2022
08-19 17:11:17.042 22707 24893 I flutter : The following _CastError was thrown during a scheduler callback:
08-19 17:11:17.042 22707 24893 I flutter : type 'List<(String, Map<dynamic, dynamic>) => Future<dynamic>?>' is not a subtype of type
08-19 17:11:17.042 22707 24893 I flutter : 'List<(String, Map<dynamic, dynamic>?) => Future<dynamic>?>' in type cast
08-19 17:11:17.042 22707 24893 I flutter :
08-19 17:11:17.042 22707 24893 I flutter : When the exception was thrown, this was the stack:
08-19 17:11:17.042 22707 24893 I flutter : #0      FlutterBoostAppState.addEventListener (package:flutter_boost/src/flutter_boost_app.dart:653:11)
08-19 17:11:17.042 22707 24893 I flutter : #1      BoostChannel.addEventListener (package:flutter_boost/src/boost_channel.dart:34:23)
08-19 17:11:17.042 22707 24893 I flutter : #2      FlutterBoostAppState._addAppLifecycleStateEventListener (package:flutter_boost/src/flutter_boost_app.dart:119:10)
08-19 17:11:17.042 22707 24893 I flutter : #3      FlutterBoostAppState.initState.<anonymous closure> (package:flutter_boost/src/flutter_boost_app.dart:108:7)
08-19 17:11:17.042 22707 24893 I flutter : #4      SchedulerBinding._invokeFrameCallback (package:flutter/src/scheduler/binding.dart:1143:15)
08-19 17:11:17.042 22707 24893 I flutter : #5      SchedulerBinding.handleDrawFrame (package:flutter/src/scheduler/binding.dart:1088:9)
08-19 17:11:17.042 22707 24893 I flutter : #6      PerformanceFlutterBinding.handleDrawFrame (package:high_available/src/api/performance_flutter_binding.dart:29:11)
08-19 17:11:17.042 22707 24893 I flutter : #7      SchedulerBinding.scheduleWarmUpFrame.<anonymous closure> (package:flutter/src/scheduler/binding.dart:863:7)
08-19 17:11:17.042 22707 24893 I flutter : (elided 11 frames from class _RawReceivePortImpl, class _Timer, dart:async, and dart:async-patch)
@joker-fu joker-fu mentioned this issue Aug 18, 2023
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