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
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? –
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é! –
Super ... J'ai oublié cette option dans l'IDE, je l'ai toujours fait via la ligne cmd ;-) – SushiHangover