美文网首页
CocoaPod Podfile的编辑

CocoaPod Podfile的编辑

作者: 这个可以 | 来源:发表于2017-02-27 10:52 被阅读0次

CocoaPod Podfile的编辑

Podfile 不一定要和xcodeproj 在一个目录下面
我们来看看怎样实现多工程使用Cocoapod

1.0 第一步

在Podfile里面配置

target 'HXMediaPlayer' do
project 'Example/HXMediaPlayer.xcodeproj'
# use_frameworks!
pod 'Masonry', '~> 1.0.2'
end

只要Podfile 指定了Xcodeproj 的位置就行

2.0 执行安装命令

pod install

可能会遇到的问题

若安装过程遇到配置错误
请选择project -> info->configurations->Based on Configuration File 配置全部清 None

相关文章

网友评论

      本文标题:CocoaPod Podfile的编辑

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