6

Run the following command in the folder with the project:

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

Nothing is displayed. This approach works fine for Cocoa Application.

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

What should be changed to work for the Cocoa Framework?

abg
  • 2,002
  • 7
  • 39
  • 63
  • Can you elaborate on your project structure? What is being included in the targets 'MyCocoaApplication' and 'MyCocoaFramework'? – ThrawnCA Oct 27 '15 at 23:56

1 Answers1

0

OCLint can't support the arm64 architecture: https://github.com/oclint/oclint/issues/190

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

ThrawnCA
  • 1,051
  • 1
  • 10
  • 23