【发布时间】:2017-03-07 11:45:12
【问题描述】:
我正在学习名为 SimpleWeather 的 Ray Wenderlich 教程。
podfile 与项目位于同一文件夹中。
这是我来自 podfile 的代码:
platform :ios, '7.0'
xcodeproj 'SimpleWeather'
pod 'Mantle'
pod 'LBBlurredImage'
pod 'TSMessages'
pod 'ReactiveCocoa'
错误信息是这样的:[!] Unable to find the Xcode project /Users/myName/Developer/SimpleWeather.xcodeproj for the target Pods。
项目名称为 SimpleWeather。
【问题讨论】:
-
你的项目名称是什么? Pods 文件的位置在哪里?
-
我已经尝试将 podfile 放在 SimpleWeather 和 Developer 中
-
将它移动到您的 SimpleWeather 项目目录中,注释掉
xcodeproj并运行$ pods install。 -
如果您绝对必须使用项目名称,请检查项目名称引号,它们应该是“反引号”。 Podfile Syntax Reference
-
当我安装 pods 时,我得到 pods: command not found。当我做 pod install 我把 xcodeproj 放回去我得到: [!] 无法自动选择 Xcode 项目。在您的 Podfile 中指定一个,如下所示: xcodeproj 'path/to/Project.xcodeproj' 我不确定我应该使用 bash 开发人员 myname 还是只使用 myname