美文网首页我们的小说
xcode 升级 cocoapods无法使用

xcode 升级 cocoapods无法使用

作者: 钟鼎斌 | 来源:发表于2015-09-19 21:38 被阅读0次

    报错

    p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo}p.p2 {margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #c33720}span.s1 {font-variant-ligatures: no-common-ligatures}
    
    xcrun: error: active developer path ("/Volumes/Xcode/Xcode.app/Contents/Developer") does not exist, use `xcode-select --switch path/to/Xcode.app` to specify the Xcode that you wish to use for command line developer tools (or see `man xcode-select`)
    xcrun: error: active developer path ("/Volumes/Xcode/Xcode.app/Contents/Developer") does not exist, use `xcode-select --switch path/to/Xcode.app` to specify the Xcode that you wish to use for command line developer tools (or see `man xcode-select`)
    Creating shallow clone of spec repo `master-1` from `https://github.com/CocoaPods/Specs.git`
    [!] Unable to add a source with url `https://github.com/CocoaPods/Specs.git` named `master-1`.
    You can try adding it manually in `~/.cocoapods/repos` or via `pod repo add`.
    

    解决方法
    sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer

    相关文章

      网友评论

        本文标题:xcode 升级 cocoapods无法使用

        本文链接:https://www.haomeiwen.com/subject/otabcttx.html