Error using Pod Install command on Podfile in Terminal

前端 未结 3 2109
执笔经年
执笔经年 2020-12-09 02:03

I have installed Cocoapods, and created a Podfile using Atom containing the following lines:

pod ‘Parse’, ‘~> 1.7.1′
pod ‘ParseUI’, ‘~> 1.1.3′
<         


        
相关标签:
3条回答
  • 2020-12-09 02:18

    Incase someone using Jenkins CI and after correcting the Podfile too error doesnt resolves. Updating your cocoapods version on your slave can help get this error resolved. As jenkins is unable to pinpoint the issue and gives this generic error.

    0 讨论(0)
  • 2020-12-09 02:19

    I had this problem because of using one smart quote in a comment in podfile. I couldn't find a smart quote in my podfile for a while. There are two symbols for smart quotes: ‘ and ’. Make sure both are removed from whole podfile.

        # Espressif’s ESP-TOUCH protocol implements Smart Config ...
    
    0 讨论(0)
  • 2020-12-09 02:22

    You shouldn’t use TextEdit to edit the pod file because TextEdit likes to replace standard quotes with more graphically appealing quotes. This can cause CocoaPods to get confused and display errors, so it’s best to just use Xcode or another programming text editor.

    TextEdit:

    Using TextEdit will give you following,

    pod ‘Parse’, ‘~> 1.7.1′    //notice the quotes
    

    To turn off smart quotes in TextEdit, goto

    TextEdit > Preferences > New Document > Options
    

    Xcode:

    To get the correct quotes you should use Xcode when opening Podfie:

    pod 'Parse', '~> 1.7.1'
    

    Terminal Commands to open using Xcode app:

    $ touch Podfile  //OR $ cd <parentDirectory of Podfile>
    $ open -a Xcode Podfile
    
    0 讨论(0)
提交回复
热议问题