Attempt to read non existent folder `/private/tmp/CocoaPods/Lint/Pods/

老子叫甜甜 提交于 2019-12-10 01:39:59

问题


AM getting this while validating pod spec:

Attempt to read non existent folder `/private/tmp/CocoaPods/Lint/Pods/Test

Pls help.


回答1:


You need to run git tag 'x.x.x' and git push --tags before pod spec lint.




回答2:


Try running your command with --verbose to see more helpful error messages:

pod spec lint --verbose
...
fatal: Remote branch 0.4.8 not found in upstream origin
fatal: The remote end hung up unexpectedly

This error is caused by git checkout failed. In my case the tag was not pushed to server side. You can find the exact cause by looking at your error message.




回答3:


I fixed the problem by running pod install again.




回答4:


I had this error, when the referred git-tag was not already pushed to upstream.




回答5:


Try to remove the first '/' so it should looks like:

'private/tmp/CocoaPods/Lint/Pods/Test'

You should add to your .podspec file the paths with reference to the .pocspec file location.

For example, if your folders look like:

So your .podspec paths should refer to:

s.source_files = 'PodTestPublicProject/*.{h,m}'



回答6:


I had the same issue when I tried to run either pod spec lint or pod trunk push without specifying the podspec file.

So try passing the name of the file to the command (replace NAME accordingly):

$ pod spec lint NAME.podspec

$ pod trunk push NAME.podspec

See here.




回答7:


If the directory where executing 'pod install' has special character, also catch the error: Attempt to read non existent folder Source: https://github.com/CocoaPods/CocoaPods/issues/2649



来源:https://stackoverflow.com/questions/24385329/attempt-to-read-non-existent-folder-private-tmp-cocoapods-lint-pods

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!