美文网首页游戏开发
记 iOS Undefined symbol 的一次报错

记 iOS Undefined symbol 的一次报错

作者: love至於终老 | 来源:发表于2019-05-22 10:21 被阅读1次

作为强迫症系统有新版本总是第一时间升级的,难免会出现兼容问题,比如这次,旧项目重新配置了一下死活跑不起来了,这便是代价吧.

报错截图

image.png

部分报错信息

Undefined symbol: typeinfo for std::bad_cast
Undefined symbol: std::__1::chrono::system_clock::now()
Undefined symbol: std::__1::condition_variable::__do_timed_wait(std::__1::unique_lock<std::__1::mutex>&, std::__1::chrono::time_point<std::__1::chrono::system_clock, std::__1::chrono::duration<long long, std::__1::ratio<1l, 1000000000l> > >)
Undefined symbol: std::__1::random_device::random_device(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)
Undefined symbol: std::__1::random_device::~random_device()
......

是不是很壮观

解决

大部分是链接相关的错误,是跟C++相关的,不知道之前为什么可以,于是尝试添加c++相关的库

image.png

搜索c++


image.png

添加即可

如果还报错,注意检查报错信息,应该是缺少其他相关的库

相关文章

网友评论

    本文标题:记 iOS Undefined symbol 的一次报错

    本文链接:https://www.haomeiwen.com/subject/cfcyzqtx.html