ios - 为什么我无法运行 "pod update"?

标签 ios objective-c cocoapods

每当我尝试在我的项目文件夹中运行 pod update 时,我都会收到以下错误:

### Stack

```
   CocoaPods : 0.29.0
        Ruby : ruby 2.0.0p247 (2013-06-27 revision 41674) [universal.x86_64-darwin13]
    RubyGems : 2.0.3
        Host : Mac OS X 10.9.1 (13B3116)
       Xcode : 5.0.2 (5A3005)
Ruby lib dir : /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib
Repositories : master - https://github.com/CocoaPods/Specs.git @ 56f3f79d03ef66e11abefc7c634b3bcdd6426577
```

### Podfile

```ruby
platform :ios, '7.0'

pod 'RedditKit', '~> 1.0'
pod 'UIView+AutoLayout'
pod 'GPUImage'
```

### Error

```
TypeError - Plist contains a hash value object type unsupported by Xcodeproj.
/Library/Ruby/Gems/2.0.0/gems/xcodeproj-0.14.1/lib/xcodeproj/project.rb:172:in `read_plist'
/Library/Ruby/Gems/2.0.0/gems/xcodeproj-0.14.1/lib/xcodeproj/project.rb:172:in `initialize_from_file'
/Library/Ruby/Gems/2.0.0/gems/xcodeproj-0.14.1/lib/xcodeproj/project.rb:93:in `open'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-0.29.0/lib/cocoapods/installer/analyzer.rb:489:in `block in compute_target_platforms'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-0.29.0/lib/cocoapods/installer/analyzer.rb:486:in `each'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-0.29.0/lib/cocoapods/installer/analyzer.rb:486:in `compute_target_platforms'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-0.29.0/lib/cocoapods/installer/analyzer.rb:55:in `analyze'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-0.29.0/lib/cocoapods/installer.rb:171:in `analyze'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-0.29.0/lib/cocoapods/installer.rb:94:in `block in resolve_dependencies'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-0.29.0/lib/cocoapods/user_interface.rb:52:in `section'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-0.29.0/lib/cocoapods/installer.rb:93:in `resolve_dependencies'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-0.29.0/lib/cocoapods/installer.rb:86:in `install!'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-0.29.0/lib/cocoapods/command/project.rb:38:in `run_install_with_update'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-0.29.0/lib/cocoapods/command/project.rb:82:in `run'
/Library/Ruby/Gems/2.0.0/gems/claide-0.4.0/lib/claide/command.rb:213:in `run'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-0.29.0/lib/cocoapods/command.rb:51:in `run'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-0.29.0/bin/pod:24:in `<top (required)>'
/usr/bin/pod:23:in `load'
/usr/bin/pod:23:in `<main>'
```

我究竟应该如何补救这个问题?据我所知,除了更改我的 podfile 以包含另一个库之外,我没有触及任何与 Cocoapods 相关的内容。

我试过这个:https://github.com/CocoaPods/Xcodeproj/issues/119它没有用。我复制了它,删除了原件,然后重命名了副本,但仍然失败。

在第一行它提到了一个文件,这是它引用的行:

172       plist = Xcodeproj.read_plist(pbxproj_path.to_s)

最佳答案

尝试转到build设置并将仅构建事件架构更改为NO。我遇到了类似的问题,这对我有用。

如果您的项目需要将Build Active Architecture Only设置为YES,将值更改为NO也可以,clean并构建,然后将其设置回 YES

关于ios - 为什么我无法运行 "pod update"?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21502801/

相关文章:

ios - 以编程方式创建的 UISplitViewController 没有滑动手势来显示/隐藏 master

ios - 类扩展中的属性属性与主类不匹配

ios - 取消订阅和重新订阅 channel 后收到最新的旧 PubNub 消息

ios - React Native rnpm unlink 库

ios - XCode:来自共享库的 Team-ID 的 "None of your accounts are member..."

iOS 6 : Parent modal's modalPresentationStyle ignored after rotation

ios - 无法解析真实设备上的日期,可在模拟器中工作

ios - UICollectionView 单元格之间的距离不变

iOS:透明文本以通过文本显示背景

Swift:使用 CocoaPods 时无法构建 Objective-C 模块