更新CocoaPods库后构建错误

时间:2015-04-11 06:25:45

标签: ios build xcode6 cocoapods

我正在开发一个传统的iOS项目作为新手。在我更新了CocoaPods和库之后,我在构建项目之后就遇到了这些奇怪的错误。

error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: can't locate file for: -lPods-Model
error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: file: -lPods-Model is not an object file (not allowed in a library)

这是我的Podfile:

platform :ios, '7.0'

link_with ['DianaViewModels']

pod 'AVOSCloud', '~> 3.0'
pod 'PixateFreestyle'

target :Model do
  link_with ['DianaModels']

  pod 'ReactiveCocoa',    '~> 2.2'
  pod 'TMCache',          '~> 1.2'
  pod 'SSKeychain',       '~> 1.2'
  pod 'Mantle',           '~> 1.3'
  pod 'AFNetworking',     '~> 1.0'
end

target :Test do
  link_with ['DianaTests']

  pod 'Kiwi',             '~> 2.2'
end

target :View do
  link_with ['Diana']

  pod 'SVPullToRefresh',  '~> 0.4'
  pod 'MBProgressHUD',    '~> 0.7'
  pod 'SWTableViewCell',  '~> 0.1'
  pod 'MTMigration'
  pod 'Masonry'
  pod 'TTTAttributedLabel'
  pod 'NJKWebViewProgress'

  target :ViewDebug do
    link_with [
      'DianaDev',
      'DianaViews'
   ]

    pod 'Reveal-iOS-SDK'
  end
end

顺便说一句,我正在使用Xcode中的CocoaPods插件。但是当我在集成期间检查安装文档时会输出很多错误:

Error opening xar archive: /var/folders/3x/mgl299js6k13tlrspqv21n340000gn/T/Model-ReactiveCocoa.xar

我的CocoaPods或Xcode6.3中的Build Setting是否有一些错误的配置?谢谢你的帮助!

增加: 这是构建阶段中的链接二进制文件库。红色项目是否意味着错误?看起来这就是原因。 enter image description here

0 个答案:

没有答案
相关问题