Could not automatically select an Xcode project

kvra13 picture kvra13 · Jun 19, 2016 · Viewed 39.8k times · Source

When i type "pod install" in a correct directory I always get this

Analyzing dependencies

[!] 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

I'm in the project directory where Podfile can be found.

Answer

ullstrm picture ullstrm · Jan 18, 2017

I had an old .xcodeproj-file in my folder, so there was 2 of them. I removed the old one and it works!