我遵循这个领域ios快速启动https://docs.mongodb.com/realm/ios/quick-start/
这是我的快速密码
import Foundation
import SwiftUI
import RealmSwift
import UIKit
let app = RealmApp(id: "xxxx")不管怎么说,我总是犯这个错误。
使用未解析标识符“RealmApp”
这是我的豆荚文件
# Uncomment the next line to define a global platform for your 项目平台:ios,“12.0”
target 'Emma' do
# Comment the next line if you don't want to use dynamic frameworks
use_frameworks!
# Pods for Emma
pod 'Firebase'
pod 'RealmSwift', '=10.0.0-beta.2'
target 'EmmaTests' do
inherit! :search_paths
# Pods for testing
end
target 'EmmaUITests' do
# Pods for testing
end
endRealmSwift模块已通过pod文件安装。我不知道如何解决这个问题,因为这就是快速启动中列出的内容。
发布于 2021-05-21 17:58:23
我也犯了同样的错误。在某种程度上,let app = RealmApp(id: "xxxx")似乎被更改为let app = App(id: "xxxx")。
https://stackoverflow.com/questions/62754044
复制相似问题