解決方案
1.首先pod spec lint podName.podspec --allow-warnings 看看能否驗證成功
2.如果驗證碼成功還是提示source_files pattern did not match any file 就說明對應(yīng)的source_files下沒有找到對應(yīng)的文件
3.到/Users/用戶/Library/Caches/CocoaPods/Pods/External/.podspec文件名/035cb9aa62b9d49f904fad1119b83da4-aebfe 目錄下崩侠,自行創(chuàng)建對應(yīng)的文件夾和內(nèi)容饥努。
4.pod repo push xxxPod? xxxpodspec --verbose --use-libraries --allow-warnings? 重試即可
還有一種情況情況你的podspec引用了一個沒有提交的source_files
1.檢查你的更新podspec 下的s.source?
2.嘗試更改為 spec.source = { :git => "https://github.com/theonelgq/LGQ_A_Category.git", :tag => "#{spec.version}" }
注意 如果生成庫成功后 pod search 不到自己的庫