美文网首页
Cocoapods使用中遇到的问题

Cocoapods使用中遇到的问题

作者: windyfat | 来源:发表于2016-10-28 17:57 被阅读14次

一、

由于安装了多个版本的Xcode,所以在使用Cocoapods的时候出现了下面的问题:

[!] 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 命令,然后加上Xcode的路径。

添加路径.gif

二、

如果在 pod install或pod update之后,出现下面错误:

The dependency `projectName` is not used in any concrete target.

可以在podfile文件中加上下面两句话:

target "projectName" do
     pod "YOUR_POD"
end

相关文章

网友评论

      本文标题:Cocoapods使用中遇到的问题

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