Git Product home page Git Product logo

Comments (6)

GeethaTesting avatar GeethaTesting commented on May 27, 2024 1

@johnfairh - Thanks for your quick response, I followed the link and tried the steps as stated.
when i run below clang command, it executed successfully

>>clang -c -x objective-c -isysroot $(xcrun --show-sdk-path) -I $(pwd) Infinite/Infinite/Infinite.h -fmodules

After that i ran below Jazzy command, it executed successfully but not generated any documentation.

jazzy --objc --umbrella-header Infinite/Infinite/Infinite.h --framework-root $(pwd)                   
0% documentation coverage with 2 undocumented symbols
included 2 symbols
building site
building search index
jam out ♪♫ to your fresh new docs in `docs`

I also tried SourceKitten command to generate the ObjectiveC json file but no luck.

sourcekitten doc --objc $(pwd)/Infinite/Infinite/Infinite.h -- -x objective-c  -I $(pwd) Infinite/Infinite/Infinite.h -fmodules > objcDoc.json
zsh: trace trap  sourcekitten doc --objc $(pwd)/Infinite/Infinite/Infinite.h -- -x objective-c

Could you please help us in generating the documentation for attached codebase.
Modular.zip

from jazzy.

johnfairh avatar johnfairh commented on May 27, 2024 1

Here's what happens when I run the clang command you say works for you:

; clang -c -x objective-c -isysroot $(xcrun --show-sdk-path) -I $(pwd) Infinite/Infinite/Infinite.h -fmodules
Infinite/Infinite/Infinite.h:19:9: fatal error: 'Infinite/NSString+DateFormatter.h' file not found
#import <Infinite/NSString+DateFormatter.h>
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

...and I can see that the NSString+DateFormatter.h file's path is:

; find . -name NSString+DateFormatter.h 
./Infinite/Infinite/PublicAPI/NSString+DateFormatter.h

So this is exactly the problem that the link I posted above describes -- you need to decide how you want to solve it. Then when you have the clang command working correctly (ie. no error messages) you can pass the same flags to sourcekitten to generate the objcDoc.json.

from jazzy.

johnfairh avatar johnfairh commented on May 27, 2024 1

I think just a slight copy+paste mistake, the umbrella header file is appearing twice in the sourcekitten command which clang is not going to like. The command should be something like:

sourcekitten doc --objc $(pwd)/Infinite/Infinite/Infinite.h -- -x objective-c -isysroot $(xcrun --show-sdk-path) -I $(pwd) -fmodules

And check your very first comment - if your project is for iOS then you'll need to put back the --sdk iphonesimulator.

from jazzy.

johnfairh avatar johnfairh commented on May 27, 2024

It looks like you need some more build flags to tell Clang where the headers are -- try reading around these notes.

from jazzy.

GeethaTesting avatar GeethaTesting commented on May 27, 2024

Hello @johnfairh,
I tried to add symbolic link in the below attached project and executed clang command. Command executed successfully.

clang -c -x objective-c -isysroot $(xcrun --show-sdk-path) -I $(pwd) Infinite/Infinite/Infinite.h -fmodules

As suggested above I tried same command with sourcekitten and im getting below error. Attached screenshot for reference.

clang -c -x objective-c -isysroot $(xcrun --show-sdk-path) -I $(pwd) Infinite/Infinite/Infinite.h -fmodules
geethadevi@INCHEL-GXTG90HJ-7903 Modular % sourcekitten doc --objc $(pwd)/Infinite/Infinite/Infinite.h -- -x objective-c -isysroot $(xcrun --show-sdk-path) -I $(pwd) Infinite/Infinite/Infinite.h -fmodules
zsh: trace trap  sourcekitten doc --objc $(pwd)/Infinite/Infinite/Infinite.h -- -x objective-c

Screenshot 2023-05-07 at 9 27 25 PM

Modular.zip

from jazzy.

GeethaTesting avatar GeethaTesting commented on May 27, 2024

@johnfairh Thanks a lot for your support. It's working fine and able to generate documentation successfully.

from jazzy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.