Could not automatically select an Xcode project

后端 未结 21 723
灰色年华
灰色年华 2021-02-02 06:03

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

Analyzing dependencies

[!] Could not automatically select an Xcode project. Specify          


        
相关标签:
21条回答
  • 2021-02-02 06:22

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

    0 讨论(0)
  • 2021-02-02 06:23

    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.

    0 讨论(0)
  • 2021-02-02 06:27
    platform :iOS, '8.0'
    use_frameworks!
    
    target 'Posting' do
    project 'projectpath/project.xcodeproj'
    pod 'ALCameraViewController'
    end
    
    0 讨论(0)
  • 2021-02-02 06:27

    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
    
    0 讨论(0)
  • 2021-02-02 06:28

    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

    0 讨论(0)
  • 2021-02-02 06:28

    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

    0 讨论(0)
提交回复
热议问题