正在此同時驗證莢規格:試圖讀取不存在的文件夾`/私有的/ tmp /的CocoaPods /皮棉/莢/
Attempt to read non existent folder `/private/tmp/CocoaPods/Lint/Pods/Test
請幫助。
正在此同時驗證莢規格:試圖讀取不存在的文件夾`/私有的/ tmp /的CocoaPods /皮棉/莢/
Attempt to read non existent folder `/private/tmp/CocoaPods/Lint/Pods/Test
請幫助。
嘗試刪除第一個「/」,所以它應該是這樣的:
'private/tmp/CocoaPods/Lint/Pods/Test'
你應該參照.pocspec文件位置添加到您的.podspec文件的路徑。
例如,如果您的文件夾的樣子:
所以你.podspec
路徑應該是指:
s.source_files = 'PodTestPublicProject/*.{h,m}'
我固定的運行莢再次安裝的問題。
我有這個錯誤,當引用的git標籤還沒有推到上游。
您需要在pod spec lint
之前運行git tag 'x.x.x'
和git push --tags
。
當我試圖在不指定podspec文件的情況下運行pod spec lint
或pod trunk push
時,我遇到了同樣的問題。
所以要儘量傳遞文件的名稱命令(更換NAME
相應):
$ pod spec lint NAME.podspec
$ pod trunk push NAME.podspec
見here。
嘗試運行與--verbose
你的命令來查看更多有用的錯誤信息:
pod spec lint --verbose
...
fatal: Remote branch 0.4.8 not found in upstream origin
fatal: The remote end hung up unexpectedly
此錯誤是由git的結帳造成的失敗。在我的情況下,標籤沒有推到服務器端。您可以通過查看錯誤消息找到確切的原因。
您是否得到了答案? – jAckOdE