常见错误

1.swift undefined symbol: type metadata for xxxx库

找不到依赖库:xxxx库,需要手动添加:xxxx库:
Build Phases - Link Binary With Libraries 点击➕ 根据实际情况添加缺少的依赖库即可

2.Xcode 10/11 其他Xcode版本没有测试,使用静态库时报错

Undefined symbols for architecture arm64:
      "vtable for __cxxabiv1::__class_type_info", referenced from:
          typeinfo for xxx in xxxSDK.a(xxx.o)
      NOTE: a missing vtable usually means the first non-inline virtual member function has no definition.
      "___cxa_pure_virtual", referenced from:
          vtable for xxx in xxxSDK.a(xxx.o)
      "vtable for __cxxabiv1::__si_class_type_info", referenced from:
          typeinfo for xxxxxx in xxx.a(xxx.o)
          typeinfo for Tcpxxx in xxx.a(xxx.o)
      NOTE: a missing vtable usually means the first non-inline virtual member function has no definition.
      "___cxa_begin_catch", referenced from:
          ___clang_call_terminate in xxxSDK.a(xxxxxx.a)
      "operator new[](unsigned long)", referenced from:
          xxxxxx::xxxSetCaCert(unsigned char*, int) in xxxSDK.a(xxxxxx.a)
          xxxxxx::xxxSetServerCert(unsigned char*, int) in xxxSDK.a(xxxxxx.a)
          xxx::setErrorMsg(char const*, ...) in xxxSDK.a(xxx.a)
      "operator new(unsigned long)", referenced from:
          -[xxxxxx xxxConfig:hostPort:cert:] in xxxSDK.a(xxxxxx.a)
      "std::terminate()", referenced from:
          ___clang_call_terminate in xxxSDK.a(xxxxxx.a)
      "operator delete[](void*)", referenced from:
          xxxxxx::~xxxxxx() in xxxSDK.a(xxxxxx.a)
          xxx::~xxx() in xxxSDK.a(xxx.a)
      "operator delete(void*)", referenced from:
          -[xxxxxx xxxConfig:hostPort:cert:] in xxxSDK.a(xxxxxx.a)
          xxxxxx::~xxxxxx() in xxxSDK.a(xxxxxx.a)
          Tcpxxx::~Tcpxxx() in xxxSDK.a(Tcpxxx.a)
      "___gxx_personality_v0", referenced from:
          -[xxxxxx init] in xxxSDK.a(xxxxxx.a)
          +[xxxxxx sharedInstance] in xxxSDK.a(xxxxxx.a)
          -[xxxxxx connectServer:hostPort:] in xxxSDK.a(xxxxxx.a)
          -[xxxxxx convertErrCode:] in xxxSDK.a(xxxxxx.a)
          -[xxxxxx online:sendData:recvData:] in xxxSDK.a(xxxxxx.a)
          -[xxxxxx xxxConfig:hostPort:cert:] in xxxSDK.a(xxxxxx.a)
          -[xxxxxx xxxSend:] in xxxSDK.a(xxxxxx.a)
          ...
    ld: symbol(s) not found for architecture arm64
    clang: error: linker xxxand failed with exit code 1 (use -v to see invocation)

解决方法:手动添加动态库(libc++.dylib 或者改名后的 libc++.tbd)

The certificate used to sign "ShowMe_iOS" has either expired or has been revoked.

删无效证书 清缓存
~/Library/MobileDevice/Provisioning Profiles

flutter Unable to install "Runner"

删掉有影响的app

真机调试报错

xcode->Window->Devices and Simulators
查看详细信息

posted @ 2020-07-17 10:49  yxg889  阅读(435)  评论(0编辑  收藏  举报