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

引入工程后 run 报错 #8

Closed
Wuzo opened this issue Mar 8, 2019 · 4 comments
Closed

引入工程后 run 报错 #8

Wuzo opened this issue Mar 8, 2019 · 4 comments

Comments

@Wuzo
Copy link

Wuzo commented Mar 8, 2019

Launching lib/main.dart on iPhone XR in debug mode...
Xcode build done.                                            3.4s
Failed to build iOS app
Error output from Xcode build:
↳
    ** BUILD FAILED **
Xcode's output:
↳
    === BUILD TARGET Runner OF PROJECT Runner WITH CONFIGURATION Debug ===
    Undefined symbols for architecture x86_64:
      "___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 x86_64
    clang: error: linker command failed with exit code 1 (use -v to see invocation)
@Wuzo
Copy link
Author

Wuzo commented Mar 8, 2019

Launching lib/main.dart on xx的 iPhone in debug mode...
Automatically signing iOS for device deployment using specified development team in Xcode project: xxxxxx
Xcode build done.                                            6.6s
Failed to build iOS app
Error output from Xcode build:
↳
    ** BUILD FAILED **
Xcode's output:
↳
    === BUILD TARGET sqflite OF PROJECT Pods WITH CONFIGURATION Debug ===
    /Users/xxx/Desktop/Android/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/xxx/Desktop/Android/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/xxx/Desktop/Android/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.
    /Users/xxx/Desktop/Android/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/xxx/Desktop/Android/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/xxx/Desktop/Android/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 flutter_boost OF PROJECT Pods WITH CONFIGURATION Debug ===
    /Users/xxx/Desktop/Android/flutter/.pub-cache/hosted/pub.flutter-io.cn/flutter_boost-0.0.34/ios/Classes/Boost/FLBFlutterApplication.m:47:9: warning: block implicitly retains 'self'; explicitly mention 'self' to indicate this is intended behavior [-Wimplicit-retain-self]
            _platform = platform;
            ^
            self->
    /Users/xxx/Desktop/Android/flutter/.pub-cache/hosted/pub.flutter-io.cn/flutter_boost-0.0.34/ios/Classes/Boost/FLBFlutterApplication.m:48:9: warning: block implicitly retains 'self'; explicitly mention 'self' to indicate this is intended behavior [-Wimplicit-retain-self]
            _viewProvider = [[FLBViewProviderFactory new] createViewProvider];
            ^
            self->
    /Users/xxx/Desktop/Android/flutter/.pub-cache/hosted/pub.flutter-io.cn/flutter_boost-0.0.34/ios/Classes/Boost/FLBFlutterApplication.m:49:10: warning: block implicitly retains 'self'; explicitly mention 'self' to indicate this is intended behavior [-Wimplicit-retain-self]
            [_viewProvider resume];
             ^
             self->
    /Users/xxx/Desktop/Android/flutter/.pub-cache/hosted/pub.flutter-io.cn/flutter_boost-0.0.34/ios/Classes/Boost/FLBFlutterApplication.m:50:9: warning: block implicitly retains 'self'; explicitly mention 'self' to indicate this is intended behavior [-Wimplicit-retain-self]
            _isRendering = YES;
            ^
            self->
    /Users/xxx/Desktop/Android/flutter/.pub-cache/hosted/pub.flutter-io.cn/flutter_boost-0.0.34/ios/Classes/Boost/FLBFlutterApplication.m:51:9: warning: block implicitly retains 'self'; explicitly mention 'self' to indicate this is intended behavior [-Wimplicit-retain-self]
            _isRunning = YES;
            ^
            self->
    /Users/xxx/Desktop/Android/flutter/.pub-cache/hosted/pub.flutter-io.cn/flutter_boost-0.0.34/ios/Classes/Boost/FLBFlutterApplication.m:52:31: warning: block implicitly retains 'self'; explicitly mention 'self' to indicate this is intended behavior [-Wimplicit-retain-self]
            if(callback) callback(_viewProvider.viewController);
                                  ^
                                  self->
    /Users/xxx/Desktop/Android/flutter/.pub-cache/hosted/pub.flutter-io.cn/flutter_boost-0.0.34/ios/Classes/Boost/FLBFlutterApplication.m:25:13: warning: unused variable 'sIsRunning' [-Wunused-variable]
    static bool sIsRunning = false;
                ^
    7 warnings generated.
    === 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.34/ios/Classes/Support/Memory/FLBMemoryInspector.mm:89: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.
    /Users/xxx/Desktop/Android/flutter/.pub-cache/hosted/pub.flutter-io.cn/flutter_boost-0.0.34/ios/Classes/Boost/FLBFlutterApplication.m:47:9: warning: block implicitly retains 'self'; explicitly mention 'self' to indicate this is intended behavior [-Wimplicit-retain-self]
            _platform = platform;
            ^
            self->
    /Users/xxx/Desktop/Android/flutter/.pub-cache/hosted/pub.flutter-io.cn/flutter_boost-0.0.34/ios/Classes/Boost/FLBFlutterApplication.m:48:9: warning: block implicitly retains 'self'; explicitly mention 'self' to indicate this is intended behavior [-Wimplicit-retain-self]
            _viewProvider = [[FLBViewProviderFactory new] createViewProvider];
            ^
            self->
    /Users/xxx/Desktop/Android/flutter/.pub-cache/hosted/pub.flutter-io.cn/flutter_boost-0.0.34/ios/Classes/Boost/FLBFlutterApplication.m:49:10: warning: block implicitly retains 'self'; explicitly mention 'self' to indicate this is intended behavior [-Wimplicit-retain-self]
            [_viewProvider resume];
             ^
             self->
    /Users/xxx/Desktop/Android/flutter/.pub-cache/hosted/pub.flutter-io.cn/flutter_boost-0.0.34/ios/Classes/Boost/FLBFlutterApplication.m:50:9: warning: block implicitly retains 'self'; explicitly mention 'self' to indicate this is intended behavior [-Wimplicit-retain-self]
            _isRendering = YES;
            ^
            self->
    /Users/xxx/Desktop/Android/flutter/.pub-cache/hosted/pub.flutter-io.cn/flutter_boost-0.0.34/ios/Classes/Boost/FLBFlutterApplication.m:51:9: warning: block implicitly retains 'self'; explicitly mention 'self' to indicate this is intended behavior [-Wimplicit-retain-self]
            _isRunning = YES;
            ^
            self->
    /Users/xxx/Desktop/Android/flutter/.pub-cache/hosted/pub.flutter-io.cn/flutter_boost-0.0.34/ios/Classes/Boost/FLBFlutterApplication.m:52:31: warning: block implicitly retains 'self'; explicitly mention 'self' to indicate this is intended behavior [-Wimplicit-retain-self]
            if(callback) callback(_viewProvider.viewController);
                                  ^
                                  self->
    /Users/xxx/Desktop/Android/flutter/.pub-cache/hosted/pub.flutter-io.cn/flutter_boost-0.0.34/ios/Classes/Boost/FLBFlutterApplication.m:25:13: warning: unused variable 'sIsRunning' [-Wunused-variable]
    static bool sIsRunning = false;
                ^
    7 warnings generated.
    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  xx的 iPhone.
Exited (sigterm)

@Wuzo Wuzo changed the title 引入后直接 引入工程后 run 报错 Mar 8, 2019
@nightwolf-chen
Copy link
Contributor

I guess this is related to libstd++. Which version of Xcode are you using? Can you show this section of from Build Settings?
20190308103411

@Wuzo
Copy link
Author

Wuzo commented Mar 8, 2019

我想这与libstd ++有关。您使用的是哪个版本的Xcode?你能从Build Settings中显示这一部分吗?
20190308103411

谢谢 确实是这个原因.

@Wuzo
Copy link
Author

Wuzo commented Mar 17, 2019

@nightwolf-chen
请教一个问题引用 xservice_kit 的目的是为了解决什么问题

noborder pushed a commit that referenced this issue Jan 19, 2020
@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

2 participants