【发布时间】:2020-10-08 02:28:35
【问题描述】:
我使用 xcode 11.4 创建了一个新的 Swift 应用程序,我正在尝试按照文档 (https://docs.mongodb.com/realm/ios/install/#ios-install) 中的说明为 Mongodb Realm 安装 pod。但是当我执行“pod install”时,我收到了这个错误:
*Installing Realm (10.0.0-beta.6)
[!] /bin/bash -c
set -e
sh build.sh cocoapods-setup
Downloading dependency: sync 10.0.0-beta.14 from https://static.realm.io/downloads/sync/realm-sync-cocoa-10.0.0-beta.14.tar.xz
Undefined symbols for architecture x86_64:
"___isPlatformVersionAtLeast", referenced from:
realm::util::(anonymous namespace)::ensure_reclaimer_thread_runs() in librealm-sync-ios-dbg.a(file_mapper.o)
realm::util::terminate_internal(std::__1::basic_stringstream<char, std::__1::char_traits<char>, std::__1::allocator<char> >&) in librealm-sync-ios-dbg.a(terminate.o)
realm::util::network::SecureTransportErrorCategory::message(int) const in librealm-sync-ios-dbg.a(network_ssl.o)
realm::util::network::ssl::Stream::verify_peer() in librealm-sync-ios-dbg.a(network_ssl.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)*
我的 podfile 是按照说明:
*platform :ios, '12.0'
target 'TEST' do
use_frameworks!
pod 'RealmSwift', '=10.0.0-beta.6'
end*
我按照确切的说明进行操作,为什么会发生这种情况?
【问题讨论】:
-
也用 Xcode 10.1 试过了,还是不行
-
也试过这个:pod 'RealmSwift', '=10.0.0-rc.1',在本安装指南中提到docs.mongodb.com/realm/ios/install .....还是不行
-
那是 exact podfile 吗?没有跳过任何行?
-
是的,确切的 potfile,也用旧版本的 pod 'RealmSwift','=10.0.0-beta.5' 尝试过,仍然无法正常工作。
标签: xcode mongodb installation realm