So führen Sie ein Programm über die Befehlszeile mit Parametern unter Mac OS X aus

920
user36089

Ich versuche, APIKit zu verwenden, um meine Codes zu scannen, um festzustellen, ob eine private API vorhanden ist. apiscanner sollte als laufen

apiscanner ~/Desktop/MyPath/myapp.app 

Ich habe den Befehl 'cd' verwendet, um in das Verzeichnis zu gelangen, in dem sich der Scanner befindet. Aber wenn ich apiscanner ~/Desktop/MyPath/MyApp.appam Terminal anrufe, meldet es sich

Last login: Sun Jun 13 07:22:07 on ttys002 unknown required load command 0x80000022 Trace/BPT trap logout 

Selbst wenn ich die Dateien kopieren apiscanner und doit auf MyPath, dann ausführen, bekomme ich das gleiche Problem. Ich denke, dass etwas nicht stimmt, wenn ich einen Scanner unter Mac OS X laufen lasse.

Begrüßen Sie jeden Kommentar

Vielen Dank

0
Wenn Sie `command` ausführen, werden im Allgemeinen Systemverzeichnisse nach dem Befehl durchsucht. Wenn Sie einen Befehl im aktuellen Verzeichnis verwenden möchten, verwenden Sie stattdessen `. / Command`. Darth Android vor 13 Jahren 1

1 Antwort auf die Frage

1
Darth Android

You are running the command correctly if you are simply trying to pass ~/Desktop/MyPath/myapp.app as the first argument to the command apiscanner - and the command will work from any directory on your system assuming that apiscanner is installed correctly.

The output you are seeing is legitimate output from apiscanner, and you should check that it is fully supported for your version of OS X and properly installed.

If you're still having troubles, you can almost always google the application name and the error message - Mac apiscanner unknown required load command 0x80000022, or you can alter your question / ask a new one here to clarify what you're having trouble with.