运行pod install时,我目前收到以下错误:
[!] Invalid `Podfile` file: undefined method `source' for #<Pod::Podfile:0x007fcf91b8c7a8>. Updating CocoaPods might fix the issue.
# from /Users/preston/Work/Test/Podfile:1
# -------------------------------------------
> source 'https://github.com/CocoaPods/Specs.git'
# platform :ios, '8.0'
# -------------------------------------------
我尝试了以下内容:
pod repo remove master; pod设置
rm -rf~ / .cocoapods; pod设置
sudo gem uninstall cocoapods; sudo gem install cocoapods
运行最后一个项目符号后,我运行了pod setup并获得了以下内容:
Setting up CocoaPods master repo
Already up-to-date.
CocoaPods 0.36.0 is available.
To update use: [sudo] gem install cocoapods
Setup completed (read-only access)
由于我刚刚更新,这令人困惑。
运行所有这些命令后,我仍然遇到上述错误。有谁知道可能出现的问题?
修改
这是我的Podfile。然而,一切都在另一台计算机上运行,但不在我的计算机上:
source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '8.0'
use_frameworks!