User information about macOS Mojave

Richard L. Hamilton rlhamil at
Thu Sep 27 10:01:27 UTC 2018

Clearly you can install 9.4.1 on Mojave...and it seems to work at least for trivial code, even compiling to 32 bit:

sh-3.2$ uname -a
Darwin bigapple-mojave.pri 18.0.0 Darwin Kernel Version 18.0.0: Wed Aug 22 20:13:40 PDT 2018; root:xnu-4903.201.2~1/RELEASE_X86_64 x86_64
sh-3.2$ xcode-select --print-path
sh-3.2$ cat hello.c
#include <stdio.h>
main(int argc, char **argv)
	(void) printf("Hello, world!\n");
	return (0);
sh-3.2$ gcc -m32 hello.c -o hello
sh-3.2$ file hello
hello: Mach-O executable i386
sh-3.2$ ./hello
Hello, world!

I have both installed, and simply switched the command line instances with
sudo xcode-select --switch /Applications/
I could switch back with
sudo xcode-select --switch /Applications/

The sample is a very undemanding C program.  Not sure how well it would work with C++, or Objective C, esp. if it was pushing the limits of what a 32-bit executable was allowed to do on the prior OS release.  And I hadn't been able to figure out how to do a 32-bit build with the GUI, although since I rarely use it, that could well be me, not it.

> On Sep 27, 2018, at 05:00, Ces VLC <cesarillovlc at> wrote:
> On Wed, Sep 19, 2018 at 7:54 PM Ryan Schmidt <ryandesign at <mailto:ryandesign at>> wrote:
> [...]
> > Mojave requires Xcode 10 which contains only the 10.14 SDK.
> Is it really required? Is it not possible to use Xcode 9.4.1 on Mojave? (I'm asking because I thought Xcode had a requirement for the minimum MacOS version it could run on, rather than the maximum MacOS version... obviously with the limit of course that you cannot use new features from SDKs newer than those provided with your Xcode version).
> C├ęsar

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 874 bytes
Desc: Message signed with OpenPGP
URL: <>

More information about the macports-users mailing list