0

..我正在尝试使用 oclint-json-compilation 生成报告

oclint-json-compilation-database -v oclint_args "-report-type html -o report.html -rc=LONG_LINE=120" open compile_commands.json open report.html 

我收到以下错误

`While building module 'UIKit' imported from /Users/prjwl/Documents/Samples/automation/automation/automation-Prefix.pch:14:
While building module 'QuartzCore' imported from /Users/prjwl/Documents/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UICollectionViewLayout.h:11:
In file included from <module-includes>:1:
In file included from /Users/prjwl/Documents/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/CAAnimation.h:6:
/Users/prjwl/Documents/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/CALayer.h:153:25: note: property declared here
@property CATransform3D transform;
                        ^
While building module 'UIKit' imported from /Users/prjwl/Documents/Samples/automation/automation/automation-Prefix.pch:14:
While building module 'QuartzCore' imported from /Users/prjwl/Documents/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UICollectionViewLayout.h:11:
In file included from <module-includes>:4:
In file included from /Users/prjwl/Documents/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/CAEAGLLayer.h:6:
/Users/prjwl/Documents/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/CALayer.h:166:18: error: property has a previous declaration
@property CGRect frame;
                 ^
While building module 'UIKit' imported from /Users/prjwl/Documents/Samples/automation/automation/automation-Prefix.pch:14:
While building module 'QuartzCore' imported from /Users/prjwl/Documents/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UICollectionViewLayout.h:11:
In file included from <module-includes>:1:
In file included from /Users/prjwl/Documents/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/CAAnimation.h:6:
/Users/prjwl/Documents/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/CALayer.h:166:18: note: property declared here
@property CGRect frame;
                 ^
While building module 'UIKit' imported from /Users/prjwl/Documents/Samples/automation/automation/automation-Prefix.pch:14:
While building module 'QuartzCore' imported from /Users/prjwl/Documents/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UICollectionViewLayout.h:11:
In file included from <module-includes>:4:
In file included from /Users/prjwl/Documents/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/CAEAGLLayer.h:6:
/Users/prjwl/Documents/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/CALayer.h:171:33: error: property has a previous declaration
@property(getter=isHidden) BOOL hidden;
                                ^
While building module 'UIKit' imported from /Users/prjwl/Documents/Samples/automation/automation/automation-Prefix.pch:14:
While building module 'QuartzCore' imported from /Users/prjwl/Documents/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UICollectionViewLayout.h:11:
In file included from <module-includes>:1:
In file included from /Users/prjwl/Documents/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/CAAnimation.h:6:
/Users/prjwl/Documents/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/CALayer.h:171:33: note: property declared here
@property(getter=isHidden) BOOL hidden;
                                ^
While building module 'UIKit' imported from /Users/prjwl/Documents/Samples/automation/automation/automation-Prefix.pch:14:
While building module 'QuartzCore' imported from /Users/prjwl/Documents/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UICollectionViewLayout.h:11:
In file included from <module-includes>:4:
In file included from /Users/prjwl/Documents/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/CAEAGLLayer.h:6:
/Users/prjwl/Documents/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/CALayer.h:176:38: error: property has a previous declaration
@property(getter=isDoubleSided) BOOL doubleSided;
                                     ^
While building module 'UIKit' imported from /Users/prjwl/Documents/Samples/automation/automation/automation-Prefix.pch:14:
While building module 'QuartzCore' imported from /Users/prjwl/Documents/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UICollectionViewLayout.h:11:
In file included from <module-includes>:1:
In file included from /Users/prjwl/Documents/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/CAAnimation.h:6:
/Users/prjwl/Documents/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/CALayer.h:176:38: note: property declared here
@property(getter=isDoubleSided) BOOL doubleSided;
                                     ^
While building module 'UIKit' imported from /Users/prjwl/Documents/Samples/automation/automation/automation-Prefix.pch:14:
While building module 'QuartzCore' imported from /Users/prjwl/Documents/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UICollectionViewLayout.h:11:
In file included from <module-includes>:4:
In file included from /Users/prjwl/Documents/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/CAEAGLLayer.h:6:
/Users/prjwl/Documents/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/CALayer.h:184:42: error: property has a previous declaration
@property(getter=isGeometryFlipped) BOOL geometryFlipped;
                                         ^
While building module 'UIKit' imported from /Users/prjwl/Documents/Samples/automation/automation/automation-Prefix.pch:14:
While building module 'QuartzCore' imported from /Users/prjwl/Documents/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UICollectionViewLayout.h:11:
In file included from <module-includes>:1:
In file included from /Users/prjwl/Documents/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/CAAnimation.h:6:
/Users/prjwl/Documents/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/CALayer.h:184:42: note: property declared here
@property(getter=isGeometryFlipped) BOOL geometryFlipped;
                                         ^
While building module 'UIKit' imported from /Users/prjwl/Documents/Samples/automation/automation/automation-Prefix.pch:14:
While building module 'QuartzCore' imported from /Users/prjwl/Documents/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UICollectionViewLayout.h:11:
In file included from <module-includes>:4:
In file included from /Users/prjwl/Documents/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/CAEAGLLayer.h:6:
/Users/prjwl/Documents/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/CALayer.h:201:30: error: property has a previous declaration
@property(readonly) CALayer *superlayer; 
                             ^
While building module 'UIKit' imported from /Users/prjwl/Documents/Samples/automation/automation/automation-Prefix.pch:14:
While building module 'QuartzCore' imported from /Users/prjwl/Documents/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UICollectionViewLayout.h:11:
In file included from <module-includes>:1:
In file included from /Users/prjwl/Documents/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/CAAnimation.h:6:
/Users/prjwl/Documents/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/CALayer.h:201:30: note: property declared here
@property(readonly) CALayer *superlayer; 
                             ^
While building module 'UIKit' imported from /Users/prjwl/Documents/Samples/automation/automation/automation-Prefix.pch:14:
While building module 'QuartzCore' imported from /Users/prjwl/Documents/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UICollectionViewLayout.h:11:
In file included from <module-includes>:4:
In file included from /Users/prjwl/Documents/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/CAEAGLLayer.h:6:
/Users/prjwl/Documents/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/CALayer.h:214:26: error: property has a previous declaration
@property(copy) NSArray *sublayers;
                         ^
While building module 'UIKit' imported from /Users/prjwl/Documents/Samples/automation/automation/automation-Prefix.pch:14:
While building module 'QuartzCore' imported from /Users/prjwl/Documents/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UICollectionViewLayout.h:11:
In file included from <module-includes>:1:
In file included from /Users/prjwl/Documents/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/CAAnimation.h:6:
/Users/prjwl/Documents/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/CALayer.h:214:26: note: property declared here
@property(copy) NSArray *sublayers;
                         ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
While building module 'UIKit' imported from /Users/prjwl/Documents/Samples/automation/automation/automation-Prefix.pch:14:
In file included from <module-includes>:1:
In file included from /Users/prjwl/Documents/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.h:24:
In file included from /Users/prjwl/Documents/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UICollectionViewFlowLayout.h:8:
/Users/prjwl/Documents/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UICollectionViewLayout.h:11:9: fatal error: could not build module 'QuartzCore'
#import <QuartzCore/CATransform3D.h>
 ~~~~~~~^
21 errors generated.
In file included from <built-in>:168:
In file included from <command line>:2:
/Users/prjwl/Documents/Samples/automation/automation/automation-Prefix.pch:14:13: fatal error: could not build module 'UIKit'
    #import <UIKit/UIKit.h>
     ~~~~~~~^

等等任何人都可以帮助我如何从 oclint 中排除系统库?

4

1 回答 1

1

我也遇到了同样的问题,但能够从这里更新到 OCLint 0.8 来解决它。

于 2014-10-09T05:50:48.647 回答