相关疑难解决方法(0)

错误:使用cocoapods安装RestKit后,"沙箱与Podfile.lock ...不同步"

用cocopods安装RestKit后,我遇到了一个奇怪的问题.在使用cocopods为我的项目解析RestKit依赖项并尝试构建它之后,我遇到了这个错误:

  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 …
Run Code Online (Sandbox Code Playgroud)

cocoapods restkit-0.20

212
推荐指数
14
解决办法
16万
查看次数

项目构建中的CocoaPods错误

我无法构建使用CocoaPods的项目.我收到以下错误:

diff: /../Podfile.lock: No such file or directory
diff: Manifest.lock: No such file or directory error: 
The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.`
Run Code Online (Sandbox Code Playgroud)

$ pod install似乎工作正常,并将一个Pods项目添加到我的工作区.我试过$ pod update但这没有用.

似乎PODS_ROOT没有设定.

Podfile:

platform :ios, '6.0'

workspace 'Example.xcworkspace'
xcodeproj 'example/Example.xcodeproj' 

pod 'TestFlightSDK', '~> 1.3.0-beta.5'
pod 'TestFlightLogger', '~> 0.0.2'
pod 'CocoaLumberjack', '~> 1.6.2'
pod 'Reachability', '~> 3.1.0'
pod 'SBJson', '~> 3.2'
pod 'MKMapViewZoom', '~> 1.0.0'
Run Code Online (Sandbox Code Playgroud)

cocoa-touch objective-c build-error cocoapods

178
推荐指数
11
解决办法
13万
查看次数

创建新方案后找不到豆荚?

我刚刚决定创建几个具有不同配置的不同方案。但是,当我尝试构建它时,它得到“没有这样的模块'podname'”。

我遵循了指南,并尝试在添加配置文件的步骤之前进行构建。为什么我的豆荚无法识别?我创建的新方案名为“开发”,“测试”和“生产”。

这是我的podfile的样子:

在此处输入图片说明

当我运行Pod安装时,会收到以下消息:

[!] Automatically assigning platform `ios` with version `10.0` on target `NoteIt` because no platform was specified. Please specify a platform for this target in your Podfile. See `https://guides.cocoapods.org/syntax/podfile.html#platform`.

[!] CocoaPods did not set the base configuration of your project because your project already has a custom config set. In order for CocoaPods integration to work at all, please either set the base configurations of the target `NoteIt` to `Pods/Target Support Files/Pods-NoteIt/Pods-NoteIt.debug (development).xcconfig` or include …
Run Code Online (Sandbox Code Playgroud)

xcode ios cocoapods swift

5
推荐指数
2
解决办法
2430
查看次数