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?
Können Sie Ihre Projektstruktur näher erläutern? Was ist in den Zielen 'MyCocoaApplication' und 'MyCocoaFramework' enthalten? – ThrawnCA