flutter_boost icon indicating copy to clipboard operation
flutter_boost copied to clipboard

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

Open TooXu opened this issue 7 years ago • 5 comments

`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)`

TooXu avatar Mar 13 '19 09:03 TooXu

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

nightwolf-chen avatar Mar 13 '19 09:03 nightwolf-chen

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

已解决,谢谢

TooXu avatar Mar 13 '19 09:03 TooXu

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

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

call-me-sean avatar Mar 31 '19 08:03 call-me-sean

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

TooXu avatar Mar 31 '19 08:03 TooXu

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

解决了,谢谢你👍

call-me-sean avatar Mar 31 '19 09:03 call-me-sean