Skip to content

Conversation

@PrideChung
Copy link

CocoaPos来设置YYCacheYYImage的依赖了,因为把Pods文件夹加入到 git 仓库了,所以 demo 项目还是可以 clone 下来直接跑的,只是需要打开的文件变成了xcworkspace

@ibireme
Copy link
Owner

ibireme commented Jan 22, 2016

破坏了 https://github.com/ibireme/YYWebImage/tree/master/Framework 下面的两个工程,导致 Carthage 构建失败。

@PrideChung
Copy link
Author

呃,没照顾到Carthage,我修改一下

@PrideChung
Copy link
Author

欧了

@ibireme
Copy link
Owner

ibireme commented Jan 22, 2016

呃。。这样 Carthage 仍然会把 YYCache 之类的也编译进去,但头文件却被隐藏了。。Carthage 管理依赖项目,最好要用 submodule,但这玩意儿仍然罗嗦得很。。

如果只为让 CocoaPods 的依赖关系好看些,只改一下 podspec 文件,排除 YYImage 和 YYCache 这两个文件夹就够了。。

  s.source_files = 'YYWebImage/*.{h,m}', 'YYWebImage/Categories/*.{h,m}'
  s.public_header_files = 'YYWebImage/*.{h}', 'YYWebImage/Categories/*.{h}'
  s.private_header_files = 'YYWebImage/Categories/_*.{h}'

  s.dependency 'YYCache'
  s.dependency 'YYImage'

@PrideChung
Copy link
Author

倒也是个法子,但是这样你在YYCacheYYImage的修改还是得手工同步回来

@ibireme
Copy link
Owner

ibireme commented Feb 27, 2016

已修改:
CocoaPods 里,YYImage、YYCache、WebP 的依赖都拆开了。
其他安装方式还保持原样。

@ibireme ibireme closed this Feb 27, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants