pod repo push
错误1
[!] Found multiple specifications for 'YYCache (0.9.2)
截屏2022-05-11 下午4.02.48.png
因为pod 本地的索引库有多个
使用 pod repo list 可查看如下
截屏2022-05-11 下午4.17.48.png
添加 --sources 参数,指定使用哪个库即可
pod repo push chai-repo Swap.podspec --verbose --allow-warnings --sources=https://cdn.cocoapods.org/
错误2
ERROR I [iS] unknown: Encountered an unknown error (The following Swift pods cannot yet be integrated as s
tatic libraries:
截屏2022-05-11 下午4.05.51.png
因为 swift 不支持 static libraries 去掉 --use-libraries 选项
使用:
pod repo push chai-repo Swap.podspec --verbose --allow-warnings
当pod 为swift 里面有oc 文件
oc文件需要调用swift 文件时的处理
screenshot-20220706-180536.png
如图,在oc 文件添加头文件
在swift 的文件需做如下修改
image.png