Could not automatically select an Xcode project

后端 未结 21 724
灰色年华
灰色年华 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:30

    I solved the problem as follows new Podfile

    pod init
    pod install
    
    0 讨论(0)
  • 2021-02-02 06:31

    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.

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

    I had this issue when I accidentally deleted '.xcodeproj' file.

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

    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!

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

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

    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

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