When i type \"pod install\" in a correct directory I always get this
Analyzing dependencies
[!] Could not automatically select an Xcode project. Specify
I had an old .xcodeproj-file in my folder, so there was 2 of them. I removed the old one and it works!
I have got this error when I have moved my repo to an external drive.
My solution was to move the repository to the main drive.
platform :iOS, '8.0'
use_frameworks!
target 'Posting' do
project 'projectpath/project.xcodeproj'
pod 'ALCameraViewController'
end
To address this, you'll need to add the correct path to your project.xcodeproj
. Having this one fixed, It's very likely you'll need to provide the path to your project.xcworkspace
. The code below addresses both issues.
target 'your-app-bundle-name' do
platform :ios, '8.0'
workspace 'path/to/your/project.xcworkspace/'
project 'path/to/your/project.xcodeproj/'
pod 'ALCameraViewController'
end
Mistakenly added two .xcodeproj file in the project folder.
This is why pod did not decided which one he will work for. I simply delete the unnecessary xcodeproj file from the project.
Now Solved
I had the same issue, the problem was in that my project folder was synchronized with iCloud and .xcodeproj wasn't fully loaded from it. It was visible in Finder but not visible in Terminal. The solution was to open/close .xcodeproj and try "pod install" again