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

a 夏天 提交于 2019-12-05 01:12:15

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

siuying

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.

I fixed the problem by running pod install again.

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

gran33

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}'
YoGiN

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.

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

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