2015-10-01 14 views
6

Führen Sie den folgenden Befehl in dem Ordner mit dem Projekt:Wie benutzt man OCLint für das Cocoa Framework?

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

Nichts wird angezeigt. Dieser Ansatz funktioniert gut für Cocoa-Anwendung.

$ 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 

Was sollte geändert werden, um für das Cocoa Framework zu arbeiten?

+0

Können Sie Ihre Projektstruktur näher erläutern? Was ist in den Zielen 'MyCocoaApplication' und 'MyCocoaFramework' enthalten? – ThrawnCA

Antwort

0

OCLint kann nicht die arm64 Architektur unterstützen: https://github.com/oclint/oclint/issues/190

Wenn Ihr Code zielt auf iOS 7, dann OCLint leise fehlschlagen.

+0

Nein, mein Code zielt auf OS X. – abg

+0

Und ... gibt es definitiv Probleme in MyCocoaFramework, die von OCLint markiert werden sollten? – ThrawnCA