[英]can't install realm with CocoaPods
我做了 pod init 并在 Podfile 中编写了 RealmSwift。
我正在使用 Swift5、Xcode 11.3.1、cocoaPod 1.9.1、ruby 2.3.0
# Uncomment the next line to define a global platform for your project
platform :ios, '13.0'
target 'project' do
# Comment the next line if you don't want to use dynamic frameworks
use_frameworks!
# Pods for project
pod 'RealmSwift'
target 'projectTests' do
inherit! :search_paths
# Pods for testing
end
target 'projectUITests' do
# Pods for testing
end
end
我得到了 JSON parserError 像这样
JSON::ParserError - A JSON text must at least contain two octets!
我应该怎么做才能修复 ParseError? 我可以安装 SwiftDate。 我不能只安装 RealmSwift。
遵循这些
请在运行“rm”命令之前备份相应的目录
如果不起作用,请删除 Podfile.lock 并运行 rm 命令,然后运行 pod init 和 pod install
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.