[英]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.