pouët.net

Anyone have a mac, with latest OS and no dev tools installed?

category: code [glöplog]
 
I'd like to do more macOS size coding, and have an idea for this one weird trick... only I need to know if one particular command is available on a machine with no dev tools installed, and I don't have one of those. Can anyone help? If so...

What I'd like you to do is this:

1. Open Terminal (you can find it under Applications/Utilities)

2. Type "xcrun" and press enter. If it says "command not found", proceed.
If it says a bunch of other stuff, you have the developer tools installed, and you can't help, but thanks for trying :)

3. Type "swift" and press enter. It'll either say "command not found" or "Welcome to Apple Swift blah blah". Please let me know either way!

4. If it does fire up swift, type "import AppKit" and hit enter. Let me know if it shows an error (if not it will just show a new line).

5. type ":q" and press enter to quit ;)
added on the 2019-04-26 18:11:28 by psonice psonice
can't help yah, all my macs have xcode et al on it already :/
added on the 2019-04-26 19:22:34 by psenough psenough
I have 4 macs, 3 have Xcode, the other had some stuff installed with brew. Which installs Xcode command line tools... It's so hard to find an install with no dev tools!
added on the 2019-04-26 19:36:33 by psonice psonice
Sorry, xcode here as well :/
added on the 2019-04-26 19:37:53 by aki aki
OSX Homebrew is very useful for coding stuff, make sure you have that installed. Also ensure that you have Python 2.7 installed as well. That way, you can install and run the Mac version of Bonzomatic :)
added on the 2019-04-26 21:11:08 by Felice Felice
Sure, but maybe check if the swift command is installed for me first? :)
added on the 2019-04-26 21:44:44 by psonice psonice
You could use virtual machines like with VMware, VirtualBox, etc.
added on the 2019-04-26 21:50:33 by AntDude AntDude
I spent a few hours trying to get the latest macOS running in virtualbox, without success... have given up on that.
added on the 2019-04-26 22:31:19 by psonice psonice
TBH the best thing to do if you're looking to work in MacOS is to buy a Macbook Pro. Avoid the 2011 models as these have a lot of faults on them, but if you go for a 2012 model then that should be decent enough. Quad core rather than dual if you can do this. VirtualBox may not quite have everything you need to run MacOS properly TBH ...
added on the 2019-04-26 22:41:23 by Felice Felice
I have High Sierra installed in VirtualBox, no devtools or any such things installed to my knowledge (unless it's shipped with the OS?). Don't know if this info is useful to you but here it is anyway:
Code:$ xcrun xcode-select: note: no developer tools were found at '/Applications/Xcode.app', requesting install. Choose an option in the dialog to download the command line developer tools. $ swift xcode-select: note: no developer tools were found at '/Applications/Xcode.app', requesting install. Choose an option in the dialog to download the command line developer tools.


Both invocations opened an UI popup that prompted to install Xcode.
added on the 2019-04-26 23:28:10 by noby noby
Since a few of you seem to be missing the point...

psonice is a mac coder, who has multiple macs, and might have found a new sizecoding trick.
He's trying to work out if this trick works on a brand new install of the OS (like a compomachine would be) - the trick depends on a particular command and we're not sure whether it's part of the vanilla OS or whether it comes with xcode.
added on the 2019-04-26 23:32:28 by yx yx
(alright for the record, noby's message was sent after I started typing)
added on the 2019-04-26 23:33:46 by yx yx
My install is kinda pretty as vanilla as you can get I suppose (haven't done much with it), but it's also a modified image to make it run on AMD Ryzen CPUs but that technically shouldn't affect the situation.
added on the 2019-04-26 23:38:00 by noby noby
@noby Thanks, that's useful. Would still be good to confirm on 10.14.4 (the latest version) though if anyone has a fairly standard install, because swift runtimes at least ship with that. It's not looking too hopeful tho :/
added on the 2019-04-26 23:39:14 by psonice psonice
Quote:
2. Type "xcrun" and press enter. If it says "command not found", proceed.
If it says a bunch of other stuff, you have the developer tools installed, and you can't help, but thanks for trying :)


Does "xcode-select: note: no developer tools were found at '/Applications/Xcode.app', requesting install. Choose an option in the dialog to download the command line developer tools." qualify as "bunch of other stuff"? :)
added on the 2019-04-27 13:22:40 by SiR SiR
Apparently that's what it says instead of "file not found" :) What does it say if you type 'swift'?
added on the 2019-04-27 14:37:05 by psonice psonice
Quote:
Apparently that's what it says instead of "file not found" :) What does it say if you type 'swift'?


the same again:

xcode-select: note: no developer tools were found at '/Applications/Xcode.app', requesting install. Choose an option in the dialog to download the command line developer tools.

10.14.4 btw
added on the 2019-04-27 15:12:54 by SiR SiR
Arse. That's such a pity. With that one command, my basic "runs a trivial shader, no audio" exe goes from 4.5KB to 0.85KB. And the 4.5KB is size optimised, the 0.8KB version isn't! (Both are packed - although a working exepacker would change things.) Oh well, if it's not available, it's not available. Huge thanks for checking!
added on the 2019-04-27 15:31:09 by psonice psonice
You're welcome :)
added on the 2019-04-27 15:42:10 by SiR SiR

login