我做了pod初始化,并在Podfile中编写了RealmSwift。
我使用的是Swift5,Xcode11.3.1,cocoaPod 1.9.1,Ruby2.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。
发布于 2020-04-12 01:05:34
请遵循以下内容
"${HOME}/Library/Caches/CocoaPods"
请在运行"rm“命令之前备份相应的目录
如果无效,请删除Podfile.lock并运行rm命令,然后运行pod init和pod install
https://stackoverflow.com/questions/61160470
复制相似问题