-
Notifications
You must be signed in to change notification settings - Fork 413
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
Cannot find ObjC headers from subfolders #518
Comments
Realm's public headers are all in one folder, so I can't point you to that. It's possible PSPDFKit has public headers in subfolders, so maybe @esad can help you if that's the case? In general, it'd be easier for me to help you if you could share a sample project that exhibited the same issue. |
@jpsim I created an example project that already includes a .jazzy.yaml |
I haven't had the chance to look at it yet. Hopefully soon! |
This error occurs within a call into clang from SourceKitten. For this project JazzyObjCSubfolders the parameters to sourcekitten are:
Debugging sourcekitten with those args, you can see it calling I would have thought that adding more
but I tried adding those arguments to sourcekitten and it still didn't work. I'm guessing the solution is something along those lines though, getting jazzy to specify all the recursive paths to sourcekitten explicitly. |
@jpmhouston thank you for having a look. Hope I'll find some time to dive deeper into this issue. |
I'm having the same issue. I have multiple folders for my headers, and Jazzy can't find them. I'll poke around a bit and see if I can find a solution, but I'm not seeing anything promising in the command line options. |
Note, to anyone else investigating this, I had troubles finding a good way to debug ruby in order to break in its execution at the right place, so I just modified jazzy's gem to print the arguments to SourceKitten. In the file
Launching sourcekitten with those same arguments causes the "file not found" message. Maybe someone can find the right additional arguments to get sourcekitten to work, and then jazzy needs to be made to construct those same arguments. |
Running into this same issue, my project has many sub folders too. |
It looks like the JazzyObjCSubfolders project's With this correct directory name, my experiment calling A change to jazzy's
I don't know if this should always be done or controlled by a command line/config file option though. Also, there could be a better way to find subdirectories instead of visiting every file. I'll leave it to someone else to figure those out & make this fix for real. |
I'm still having issues. My code layout looks like (and I can put aside time to make a sample project).
In the final framework output these headers are all public, and they're all in the public headers, so the actual imports in the umbrella look like That's where Jazzy has issues for me wherever I set the root (I've tried both the "Project" folders.) It immediately stops with: |
I've added a Github project for my issue: Should get something like this for output:
|
I ran into the same issue and have fixed this issue (according to @jpmhouston's idea) in the following PR #603 Cheers, |
Yeah, you're right. Fixed my comment. |
This just started happening for me for some reason. On 0.7.0. |
Still getting this issue in Jazzy v0.7.2 Project structure is
I run the following command line from folder MyProjectFramework:
This results in the error ..MyProjectFramework/Myproject/UmbrellaHeader.h:18:9: fatal error: 'MyProject/AHeader.h' file not found |
Adding all subdirectories of specified "framework_root" option as argument to sourcekitten. This enables references inside the umbrella header to other source files that are within subdirectories of the "framework_root". For details see realm#518
|
Adding all subdirectories of specified "framework_root" option as argument to sourcekitten. This enables references inside the umbrella header to other source files that are within subdirectories of the "framework_root". For details see #518
Adding all subdirectories of specified "framework_root" option as argument to sourcekitten. This enables references inside the umbrella header to other source files that are within subdirectories of the "framework_root". For details see realm#518
I'm having issues with jazzy finding source files.
#import "<Filename>.h"
fatal error: '<Filename>.h' file not found
)#import <Subfolder/Filename.h>
Any ideas how to fix that issue? I'd also be interested in an example - would greatly appreciate if anybody could provide a link to a repo using objC that organizes files in subfolders and got jazzy working.
The text was updated successfully, but these errors were encountered: