..我正在尝试使用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中排除系统库?

最佳答案

我也遇到了同样的问题,但是能够解决将其从here更新为OCLint 0.8的问题。

关于ios - oclint-json-compilation-database错误,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/25788251/

10-17 03:05