When i type \"pod install\" in a correct directory I always get this
Analyzing dependencies
[!] Could not automatically select an Xcode project. Specify
I solved the problem as follows new Podfile
pod init
pod install
I had my project stored in the Icloud and when I moved it to my desktop, the terminal found the project and allowed me to install the POD.
I had this issue when I accidentally deleted '.xcodeproj' file.
This happened to me, I had my "podfile" in the subfolder and not the main directory, e.g., ~/MyProject/MyProject/podfile instead of ~/Myproject/podfile
Hope this helps!
You should specific project path inside pod file
platform :ios, '8.0'
use_frameworks!
project 'PATH_TO_PROJECT/YOUR_PROJECT_NAME.xcodeproj'
target 'Posting' do
pod 'ALCameraViewController'
end
For me below solution worked
Since Podfile and .xcodeproj is at same level, I added project 'oceanview.xcodeproj'
at top of the file.
So my podfile looks like below,
platform :ios, '9.0'
project 'abc.xcodeproj' #added this line
target 'abc' do
end
then run command pod install