Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Could not automatically select an Xcode project

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.

like image 677
kvra13 Avatar asked Jun 19 '16 14:06

kvra13


3 Answers

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

like image 168
ullstrm Avatar answered Nov 16 '22 13:11

ullstrm


Add your Podfile to project line for Specify project path

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

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

like image 20
torun Avatar answered Nov 16 '22 13:11

torun


platform :iOS, '8.0'
use_frameworks!

target 'Posting' do
project 'projectpath/project.xcodeproj'
pod 'ALCameraViewController'
end
like image 16
dllnboy Avatar answered Nov 16 '22 15:11

dllnboy