How do I select a project in my Podfile? I'm getting the error: Unable to find the Xcode project for the target 'Pods'

前端 未结 10 1363
独厮守ぢ
独厮守ぢ 2020-12-02 13:27

I\'m doing the Ray Wenderlich tutorial called SimpleWeather.
The podfile is in the same folder as the project. Here\'s my code from the podfile:

platfo         


        
10条回答
  •  借酒劲吻你
    2020-12-02 13:50

    I had the same problem. Then with many attempts of trials and errors I finally got the working solution:

    source 'https://github.com/CocoaPods/Specs.git'
    platform :ios, '9.0'
    use_frameworks!
    
    target 'SimpleWeather'
    pod 'Alamofire', '~> 3.4'
    

    This works when you are in your project directory (I assume you should navigate using terminal to /Users/myName/Developer/SimpleWeather/)

提交回复
热议问题