-
Notifications
You must be signed in to change notification settings - Fork 2.7k
undefined method `path' for nil:NilClass #4887
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Can you share a project we can run |
https://github.com/tapglue/elements-ios ui-kit branch |
The error I get is as follows, which is unrelated. (using beta 3)
|
@segiddins Sorry, I fixed the homepage issue. If you run pod install now you will get the error from the report |
Yup, just reproduced it, thanks! |
Issue here is the asset catalogue inside of source files. @efirestone how should we handle that case? |
IMO this is a configuration error, although we should handle it more gracefully. It's a configuration error because we're saying that a resource is a source file, which it's not. The easy fix here is to change It looks like pre-1.0.0 this would still just blindly copy assets into the sources phase, which would then fail to build. To get to an equivalent behavior with the new resources handling we should add the Another alternative, and this is really a bigger feature, is to provide more understanding of different file types and properly put them into their respective groups (headers, sources, resources, etc). In this world it would recognize that even though a
|
I'm fine with this failing, just as long as it raises an informative error and encourages running |
Changing the source_files does not help. I have a private podspec with previously containing
I changed this to:
But still getting the same error on pod spec lint:
|
I'm having the same issue. |
efirestone's answer on Feb 23 fixed the issue for me. I was pulling in a bunch of file that were not source files. |
I don't have any assets in my source folder, and I'm getting this issue now. Stack:
PodspecI have no assets, just swift files. The end of my Podspec looks like:
Podfile
ErrorThe error I'm getting is the single line:
|
Was this fixed by #6869? |
best thing to do is clone the sample project and try it! |
Tried out @nilsen340's project and undid the fix to the Podspec, it now fails with an |
👍 |
Command
Report
I'm creating a framework with this podspec:
It to build the example app correctly
this error
Stack
Plugins
Podfile
Error
The text was updated successfully, but these errors were encountered: