1指定目录下执行命令:
pod lib create XXXX

[图片上传失败...(image-92d0f3-1511836297142)]
成功之后

修改图中2处,增加自己的文件后

cd到spec所在的目录
执行pod lib lint
命令校对文件是否可用,不行使用如下命令
__ pod lib lint --verbose --use-libraries
__
出现坑:

Xcode > Preferences > Locations

依赖自己定义的私有库时:
pod lib lint XXXX.podspec --sources='https://git.XXXX.com/xxx.git,https://github.com/CocoaPods/Specs' --allow-warnings --use-libraries --verbose --no-clean
指定路径才可以验证通过,可能就是自己指定路径的时候使用你自己定义的路径,结果我只写一个sources,没有+后面的cocoapods的路径,憋了一天没过


图片拖入assets里面,pod update
之后就有resource文件
网友评论