无法自动select一个Xcode项目

当我在正确的目录中input“pod install”时,我总是得到这个

分析依赖关系

[!] Could not automatically select an Xcode project. Specify one in your Podfile like so: project 'path/to/Project.xcodeproj' 

podfile

 platform :ios, '8.0' use_frameworks! target 'Posting' do pod 'ALCameraViewController' end 

我在可以findPodfile的项目目录中。

我在我的文件夹中有一个旧的.xcodeproj文件,所以有2个。 我删除了旧的,它的作品!

这发生在我身上,我有我的“podfile”在子文件夹而不是主目录,例如,〜/ MyProject / MyProject / podfile而不是〜/ Myproject / podfile

希望这可以帮助!

将您的Podfile添加到项目行以指定项目path

 target 'MyGPSApp' do project 'FastGPS' ... end 

详情: https : //guides.cocoapods.org/syntax/podfile.html#project

你有没有在你的项目文件夹中包含整个ALCameraViewController存储库? 我最初是这么做的,而且我得到了同样的错误。 回到回购,并按照README.md文件一步一步。

如果您确实包括了整个回购,我还build议删除您的项目中包含的来自ALCameraViewController回购的所有文件夹。 然后尝试再次在Podfile中安装回购,错误应该消失。

 platform :iOS, '8.0' use_frameworks! target 'Posting' do project 'projectpath/project.xcodeproj' pod 'ALCameraViewController' end 

我有同样的问题,我通过移动podfile到主项目文件夹解决它,在你的情况:1-移动pod文件到“发布”文件夹,其中有“发布”子文件夹和“Posting.xcodeproj”文件
2-重新运行“吊舱安装”命令。 3-享受