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

iOS native 引入flutter_boost后,单独运行 flutter 工程到 iOS 设备报错。 #21

Closed
TooXu opened this issue Mar 13, 2019 · 5 comments

Comments

@TooXu
Copy link

TooXu commented Mar 13, 2019

`Error output from Xcode build:

2019-03-13 16:57:58.628 xcodebuild[45539:202925] [MT] PluginLoading: Required plug-in compatibility UUID D7881182-AD00-4C36-A94D-F45FC9B0CF85 for plug-in at path '~/Library/Application Support/Developer/Shared/Xcode/Plug-ins/InjectionPlugin.xcplugin' not present in DVTPlugInCompatibilityUUIDs
** BUILD FAILED **

Xcode's output:

/Users/xzr/flutter/.pub-cache/hosted/pub.flutter-io.cn/xservice_kit-0.0.26/ios/Classes/Service/FlutterServiceTemplate.m:124:36: warning: undeclared selector 'handlers' [-Wundeclared-selector]
if ([self respondsToSelector: @selector(handlers)]) {
^
/Users/xzr/flutter/.pub-cache/hosted/pub.flutter-io.cn/xservice_kit-0.0.26/ios/Classes/Service/FlutterServiceTemplate.m:125:52: warning: undeclared selector 'handlers' [-Wundeclared-selector]
NSArray *handlers = [self performSelector:@selector(handlers)];
^
/Users/xzr/flutter/.pub-cache/hosted/pub.flutter-io.cn/xservice_kit-0.0.26/ios/Classes/Service/FlutterServiceTemplate.m:135:10: warning: block implicitly retains 'self'; explicitly mention 'self' to indicate this is intended behavior [-Wimplicit-retain-self]
[_msgDispatcher dispatch:msg result:result];
^
self->
3 warnings 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)`

@nightwolf-chen
Copy link
Contributor

请将libc++加入到链接选项

@TooXu
Copy link
Author

TooXu commented Mar 13, 2019

请将libc++加入到链接选项

已解决,谢谢

@TooXu TooXu closed this as completed Mar 13, 2019
@nightwolf-chen nightwolf-chen mentioned this issue Mar 14, 2019
@call-me-sean
Copy link

请将libc++加入到链接选项

请教一下,这一步具体怎么做,我把libflutter_boots.a添加到Linked Frameworks and Libraries中,flutter build还是报错

@TooXu
Copy link
Author

TooXu commented Mar 31, 2019

请教一下,这一步具体怎么做,我把libflutter_boots.a添加到Linked Frameworks and Libraries中,flutter build还是报错
需要将 libc++ 添加到 ios/Runner 工程中
image

@call-me-sean
Copy link

请教一下,这一步具体怎么做,我把libflutter_boots.a添加到Linked Frameworks and Libraries中,flutter build还是报错
需要将 libc++ 添加到 ios/Runner 工程中
image

解决了,谢谢你👍

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