-
Notifications
You must be signed in to change notification settings - Fork 412
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
'Could not parse compiler arguments' when documenting Obj-C Framework #492
Comments
AFAIK if you override the parameters passed to In your case I guess that would be something like: jazzy \
--objc \
--author foo \
--module Bar \
--module-version 1.0.0 \
--xcodebuild-arguments --objc,Libraries/Bar/Bar/Bar.h,-x,objective-c,-isysroot,$(xcrun --show-sdk-path),-I,Libraries/Bar However you might be able to drop all of the |
@rastersize is correct, that |
Thanks! I tried adding just the In the end I got to something like
With the crash every time looking like this
Is there a way to pass the workspace and scheme to jazzy other than xcodebuild arguments? |
If you share a project that reproduces the issue I'll be able to troubleshoot this with you... otherwise it'll be challenging.
Not for Objective-C just yet, but we are tracking that as jpsim/SourceKitten#88 |
Here's the sample project I'm using - Foo.zip I just ran it on my second machine, and:
I did not encounter the libclang crash however, so it may have something to do with my main machine's configuration. I'll look into it tomorrow. I'm not even sure what version of jazzy I have on my main machine. I think it is 0.5.0. I saw a similar problem with libclang also reported in #479. |
Here's what your jazzy \
--objc \
--swift-version 2.2 \
--clean \
--sdk iphonesimulator \
--umbrella-header Libraries/Bar/Bar/Bar.h \
--framework-root Libraries/Bar \
--author foo \
--module-version 1.0.0 \
--module Bar That works fine for me with Jazzy 0.6.0. You'll also need to use Objective-C style documentation comments for them to be picked up by jazzy. In other words, replacing /**
* Sample class description.
*/
@interface Baz : NSObject
/// A property.
@property (nonatomic) NSString *baz;
/**
* Does something.
*
* @return YES if it did something, no otherwise.
*/
- (BOOL)doSomething;
@end If I make those changes, the following documentation is generated: http://static.realm.io/jazzy_demo/GH492/index.html Finally, if you want to still provide xcodebuild arguments directly, for now you'll need to prepend them with |
Thanks a lot! It works. I'm actually glad I don't have to use the xcodebuild arguments. As for the |
Ah, I wasn't familiar with that syntax. I just created a ticket to track supporting that: #517. I'm glad we got all this worked out! |
Me too! Thanks again. |
I have a project consisting of a bunch of Obj-C Frameworks (soon to include Swift code) and an app, all residing in a single workspace. When I run jazzy to document one of the Frameworks, I get the
Could not parse compiler arguments from 'xcodebuild' output.
error.Here's a sample project reproducing the issue.
And logs:
What's interesting, if I add a Swift class to my Framework, the error disappears. However only the one Swift class is documented.
Am I missing something? I'm using jazzy 0.5.0 and Xcode 7.2.1. I would really appreciate some help in diagnosing the issue.
The text was updated successfully, but these errors were encountered: