Xcode 10删除lstdc ++

时间:2018-10-11 14:13:05

标签: ios xcode llvm libc++

lstdc++已从Xcode 10中删除,因此我从"Link Binary With Libraries"中删除了该lib,并添加了libc ++。tbd,但在链接器中得到了类似的内容

Undefined symbols for architecture x86_64:
  "std::ios_base::Init::~Init()", referenced from:
      __GLOBAL__sub_I_BVMDOfflineMapMerge.cpp in BaiduMapAPI_Map(BVMDOfflineMapMerge.o)
  "std::string::assign(std::string const&)", referenced from:
      _baidu_framework::HandleBasemapMerge(_baidu_vi::CVString const&, _baidu_vi::CVString const&, _baidu_vi::CVString const&, char const*) in BaiduMapAPI_Map(BVMDOfflineMapMerge.o)
  "std::string::_Rep::_S_empty_rep_storage", referenced from:
      _baidu_framework::HandleBasemapMerge(_baidu_vi::CVString const&, _baidu_vi::CVString const&, _baidu_vi::CVString const&, char const*) in BaiduMapAPI_Map(BVMDOfflineMapMerge.o)
  "std::ostream& std::ostream::_M_insert<unsigned long>(unsigned long)", referenced from:
      _baidu_framework::CBVDCVersion::Save() in BaiduMapAPI_Map(BVDEDataCfg.o)

我用c ++ lib解决了它的问题。

1 个答案:

答案 0 :(得分:-1)

也许,sdk需要更新

BaiduMap可能依赖于旧版库