2015-07-20 2 views
0

J'essaie de faire fonctionner l'outil mkbundle sous Mac OS X 10.7. J'ai installé XCode 5, une poignée de versions différentes de Mono, allant de la version v2 à la version v4. Chaque fois que je tente de compiler mon code je reçois unMono mkbundle sur Mac OS X 10.7

sh: as: command not found 

Lorsque je tente de trouver cette commande, son pas sur mon système soit. Après googling, ce qui est assez difficile car "as" est filtré pour être trop générique, je ne trouve tout simplement pas de solution à cela. La meilleure ressource que je peux trouver indique le compilateur natif de XCode, mais je l'ai installé ...

Quelqu'un pourrait-il vous aider?

Répondre

1

Vous cherchez l'assembleur Xcode:

> homme

NAME 
     as - Mac OS X Mach-O GNU-based assemblers 

SYNOPSIS 
     as [ option ... ] [ file ... ] 

DESCRIPTION 
     The as command translates assembly code in the named files to object code. 
     If no files are specified, as reads from stdin. All undefined symbols in 
     the assembly are treated as global. The output of the assembly is left in 
     the file a.out by default. 

     The program /usr/bin/as is actually a driver that executes assemblers for 
     specific target architectures. If no target architecture is specified, it 
     defaults to the architecture of the host it is running on. 

Avez-vous Xcode et ses outils de ligne cmd installé?

> which as 
/usr/bin/as 

> file `which as` 
/usr/bin/as: Mach-O 64-bit executable x86_64 

Situé à Xcode.app:

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../libexec/as/x86_64/as 

outils Xcode cmd ligne:

En supposant que vous avez installé le package Xcode gratuit »via l'App Store, les outils de ligne de cmd peut être installé via "xcode-select". Laissez tomber dans une fenêtre à long terme et:

Xcode-select --help

Usage: xcode-select [options] 

Print or change the path to the active developer directory. This directory 
controls which tools are used for the Xcode command line tools (for example, 
xcodebuild) as well as the BSD development commands (such as cc and make). 

Options: 
    -h, --help     print this help message and exit 
    -p, --print-path   print the path of the active developer directory 
    -s <path>, --switch <path> set the path for the active developer directory 
    --install     open a dialog for installation of the command line developer tools 
    -v, --version    print the xcode-select version 
    -r, --reset     reset to the default command line tools path 

Xcode-select --install

Une fois installé, vous obtiendrez des mises à jour via l'App Store

+0

Les outils de ligne de commande sont-ils un paquet séparé dans l'App Store ou est-ce quelque chose que je peux installer une fois que j'ai Xcode, et si oui, comment? –

+0

Merci beaucoup! Avec votre aide initiale, j'ai réussi à trouver la section Téléchargements dans Xcode et l'ai installé à partir de là. À votre santé! –

+0

Super ... J'ai oublié cette option dans l'IDE, je l'ai toujours fait via la ligne cmd ;-) – SushiHangover