【问题标题】:Xcode Realm - Undefined symbols std::bad_allocXcode Realm - 未定义符号 std::bad_alloc
【发布时间】:2022-01-17 17:36:12
【问题描述】:

购物车文件:

github "realm/realm-cocoa" ~> 10.20.0

迦太基版本:

0.38.0

安装者:

carthage update --use-xcframeworks --platform iOS --verbose

安装 Realm 在构建时出现此错误:

Undefined symbols for architecture x86_64:
 "std::bad_alloc::~bad_alloc()", referenced from:
   realm::keychain::(anonymous namespace)::set_key(std::__1::vector<char, std::__1::allocator<char> > const&, __CFString const*, __CFString const*) in Realm(keychain_helper.o)
   realm::keychain::(anonymous namespace)::build_search_dictionary(__CFString const*, __CFString const*, realm::util::Optional<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >) in Realm(keychain_helper.o)

【问题讨论】:

    标签: xcode realm carthage


    【解决方案1】:

    这些未定义的符号来自其他库。包括libc++.tbllibz.tbl 解决了这个问题。

    【讨论】:

    • 这实际上是一个答案还是您只是说问题已通过其他方式解决?
    • 就是答案
    猜你喜欢
    • 1970-01-01
    • 2021-12-21
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-10-04
    相关资源
    最近更新 更多