【问题标题】:Unable to parse Podfile.lock error on Pod install/update无法解析 Pod 安装/更新时的 Podfile.lock 错误
【发布时间】:2018-05-12 18:25:43
【问题描述】:

无法更新/安装 pod。
错误是“无法解析 Podfile.lock 文件”。
最后安装的 pod 是:pod 'googleapis', :path => '.'
之后问题开始出现。

错误日志

[!] ERROR: Parsing unable to continue due to parsing error:
contained in the file located at /Users/ios/Documents/Projects/DemoProject4/Podfile.lock
PODS:

!ProtoCompiler (3.0.2):
Protobuf (~> 3.0)
!ProtoCompiler-gRPCPlugin (1.0.2):
!ProtoCompiler (= 3.0.2)
gRPC-ProtoRPC (= 1.0.2)
Alamofire (4.5.1)
BoringSSL (7.0):
BoringSSL/Implementation (= 7.0)
BoringSSL/Interface (= 7.0)
BoringSSL/Implementation (7.0):
BoringSSL/Interface (= 7.0)
BoringSSL/Interface (7.0)
googleapis (0.0.1):
!ProtoCompiler-gRPCPlugin (~> 1.0.0-pre1.1)
googleapis/Messages (= 0.0.1)
googleapis/Services (= 0.0.1)
googleapis/Messages (0.0.1):
!ProtoCompiler-gRPCPlugin (~> 1.0.0-pre1.1)
Protobuf
googleapis/Services (0.0.1):
!ProtoCompiler-gRPCPlugin (~> 1.0.0-pre1.1)
googleapis/Messages
gRPC-ProtoRPC
gRPC (1.0.2):
gRPC-Core (= 1.0.2)
gRPC-RxLibrary (= 1.0.2)
gRPC-Core (1.0.2):
gRPC-Core/Implementation (= 1.0.2)
gRPC-Core/Interface (= 1.0.2)
gRPC-Core/Implementation (1.0.2):
BoringSSL (~> 7.0)
gRPC-Core/Interface (= 1.0.2)
gRPC-Core/Interface (1.0.2)
gRPC-ProtoRPC (1.0.2):
gRPC (= 1.0.2)
gRPC-RxLibrary (= 1.0.2)
Protobuf (~> 3.0)
gRPC-RxLibrary (1.0.2)
Protobuf (3.5.0)
DEPENDENCIES:

Alamofire
googleapis (from .)
EXTERNAL SOURCES:
googleapis:
:path: .

SPEC CHECKSUMS:
!ProtoCompiler: cfad9cbe5299a4923b1c3c8f150818c91efd0b6d
!ProtoCompiler-gRPCPlugin: ee00d28bb35b26e2657f239833b8f2aa66724f96
Alamofire: 2d95912bf4c34f164fdfc335872e8c312acaea4a
BoringSSL: 50035b9d9eeff5529587311782fc57c00ebf13ae
googleapis: daa20dca7a0097c6c3316fdfd888e0ba1b7c8921
gRPC: dd3a91e0fb770b9fc4f43d1292fb19f2a2e04158
gRPC-Core: cc4a7613190ff0bc60a0c1e702ef07cd3f868ae6
gRPC-ProtoRPC: 11533510522a5e9627883a597a796cfe6bef05f3
gRPC-RxLibrary: 02cc70b76bc0c5bc622ba27595cca2598d9fe528
Protobuf: 8a9838fba8dae3389230e1b7f8c104aa32389c03

PODFILE CHECKSUM: bba8f9c22e10518c7ea6f79ab0fb8177c097b5f5

COCOAPODS: 1.4.0.beta.2

如何解决错误。即使我必须删除 googleapis pod,我也会这样做。但是从 podfile 中删除它并点击 pod-install 命令不起作用,因为 pod-intsall/pod-update 命令总是会产生这个错误。

My Demo Project downloadable link

【问题讨论】:

    标签: ios cocoapods speech-recognition google-speech-api


    【解决方案1】:

    这是一个 CocoaPods issue 已在 1.4.0 中修复。

    解决方法是在pod installpod update 之前删除Podfile.lock。

    【讨论】:

    • 我的显示: /Library/Ruby/Gems/2.0.0/gems/cocoapods-1.4.0.beta.2/lib/cocoapods.rb 。但仍然是同样的问题。即使我在 pod_install 之前删除了 podfile.lock,问题仍然存在。原因是,还有 Manifest.lock 文件。我也要把它删掉吗?
    猜你喜欢
    • 1970-01-01
    • 2021-06-16
    • 2021-07-04
    • 1970-01-01
    • 2021-05-10
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-04-29
    相关资源
    最近更新 更多