How to use OCLint for Cocoa Framework?

Run the following command in the project folder:

$ xcodebuild -target MyCocoaFramework -configuration Debug -scheme MyCocoaFramework clean build | tee xcodebuild.log $ oclint-xcodebuild $ oclint-json-compilation-database $ 

Nothing is displayed. This approach is great for a Cocoa application.

 $ xcodebuild -target MyCocoaApplication -configuration Debug -scheme MyCocoaApplication clean build | tee xcodebuild.log $ oclint-xcodebuild $ oclint-json-compilation-database /a/b/c/dm:181:5: redundant local variable P3 /a/b/c/d/em:193:5: redundant local variable P3 /a/b/c/dm:104:1: long line P3 Line with 112 characters exceeds limit of 100 

What needs to be changed for work in Cocoa Framework?

+6
source share
1 answer

OCLint cannot support arm64 architecture: https://github.com/oclint/oclint/issues/190

If your code targets iOS 7, then OCLint may fail.

0
source

All Articles