在安装带有Cocoapods的RestKit之后,我遇到了一个奇怪的问题。在用cocoapods解决了我项目的RestKit依赖关系并尝试构建它之后,我遇到了这个错误:
沙箱与Podfile.lock不同步。运行“ pod install”或更新您的CocoaPods安装。
我尝试跑步pod install
,但没有任何变化。
以下是一些镜头:
PODS:
- AFNetworking (1.3.3)
- RestKit (0.20.3):
- RestKit/Core
- RestKit/Core (0.20.3):
- RestKit/CoreData
- RestKit/Network
- RestKit/ObjectMapping
- RestKit/CoreData (0.20.3)
- RestKit/Network (0.20.3):
- AFNetworking (~> 1.3.0)
- RestKit/ObjectMapping
- RestKit/Support
- SOCKit
- RestKit/ObjectMapping (0.20.3)
- RestKit/Search (0.20.3):
- RestKit/CoreData
- RestKit/Support (0.20.3):
- TransitionKit (= 1.1.1)
- RestKit/Testing (0.20.3)
- SOCKit (1.1)
- TransitionKit (1.1.1)
DEPENDENCIES:
- RestKit (~> 0.20.0)
- RestKit/Search (~> 0.20.0)
- RestKit/Testing (~> 0.20.0)
SPEC CHECKSUMS:
AFNetworking: 61fdd49e2ffe6380378df37b3b6e70630bb9dd66
RestKit: 1f181c180105a92f11ec4f6cd7de37625e516d83
SOCKit: 2f3bc4d07910de12dcc202815e07db68a3802581
TransitionKit: d0e3344aac92991395d4c2e72d9c5a8ceeb12910
COCOAPODS: 0.29.0
Podfile.lock
和中发布Restkit的版本Pods/Manifest.lock
吗?当这些不相同时,将发生该错误。
Run 'pod install' or update your CocoaPods installation.
按照错误提示尝试了?