我刚刚开始学习创建iOS天气应用的教程,链接在这里。一切都很顺利,直到我在终端中输入pod install
去安装所需的pods时出现了以下报错:
Analyzing dependencies
[!] Unable to find a target
我的“podfile”文件和“Pods”文件夹与我的“RHSWeather.xcodeproj”文件在同一个文件夹中。
我使用的是Xcode 6.1。我的“podfile”文件内容如下:
platform :ios, '7.0'
xcodeproj 'RHSWeather'
pod 'Mantle', '~>1.3.1'
pod 'LBBlurredImage', '~>0.1.0'
pod 'TSMessages', '~>0.9.4'
pod 'ReactiveCocoa', '~>2.1.7'
pod 'HexColors', '~>2.2.1'
我也改变了 "podfile" 文档:
source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '8.0'
xcodeproj 'RHSWeather'
pod 'Mantle', '~>1.3.1'
pod 'LBBlurredImage', '~>0.1.0'
pod 'TSMessages', '~>0.9.4'
pod 'ReactiveCocoa', '~>2.1.7'
pod 'HexColors', '~>2.2.1'
还没有运气...但我几乎确定我之前的步骤都正确。