简体   繁体   English

无法在我的Pod中添加依赖项

[英]Unable to add dependency in my Pod

I am trying to creating pod for my library. 我正在尝试为我的图书馆创建pod。 My library use some third party library like Alamofire, Socket.IO-Client-Swift, AlamofireImage, etc. I have to add them as dependencies in my AppName.podspec . 我的库使用一些第三方库,如Alamofire,Socket.IO-Client-Swift,AlamofireImage等。我必须将它们作为依赖项添加到我的AppName.podspec

See snapshot to preview AppName.podspec : 查看快照以预览AppName.podspec

在此输入图像描述

There is no error. 没有错误。 but when I install the pod using pod install , none of the third party libraries install. 但是当我使用pod install ,没有任何第三方库安装。

Is there any other way to add a dependency to my pod file? 有没有其他方法可以为我的pod文件添加依赖项? Any suggestions? 有什么建议?

Your problem is that lines that include the dependancies are commented out (in ruby a comment is created with a hash: #) 您的问题是包含依赖项的行被注释掉(在ruby中,注释是使用哈希创建的:#)

You need to remove the hash and then it should work. 你需要删除哈希,然后它应该工作。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM