Page 1 of 3
Trying to build a MacOS standalone: need Xcode?
Posted: Sun Dec 19, 2021 12:14 am
by Fjord
Hi,
This is Community Edition 9-6-2 - Mac OS Big Sur 11-6-1
I'm trying to build a standalone for MacOS for a simple stack. By 'simple' I mean it does nothing fancy but collate and sort data from the internet. I try to follow whatever [outdated ?] doc I can find in lessons.livecode.com.
But then I get the following:

which alludes to Xcode again and again.
OTOH, I don't seem to see any reference to Xcode to build a standalone from my Mac, target my same Mac? Do I *have to* install Xcode? I've un-installed it months ago because I've no use for something that big.
Thanks for your help!
Re: Trying to build a MacOS standalone: need Xcode?
Posted: Sun Dec 19, 2021 9:05 am
by richmond62
But then I get the following:
Oddly enough that is followed by a blank space.
However, I can say that I have been building Mac standalones on Linux and on Mac for at least 17 years
(before that I was only deploying RR/LC on Macs), and have NEVER required anything beyond the RR/LC thing itself.
Re: Trying to build a MacOS standalone: need Xcode?
Posted: Sun Dec 19, 2021 9:32 am
by Fjord
I can say that I have been building Mac standalones on Linux and on Mac for at least 17 years
(before that I was only deploying RR/LC on Macs), and have NEVER required anything beyond the RR/LC thing itself.
That's what I understood from the docs …
Oddly enough that is followed by a blank space.
Sorry

Tried to insert the image of a long and complicated error message; looks OK here.
I'll try again:
Re: Trying to build a MacOS standalone: need Xcode?
Posted: Sun Dec 19, 2021 9:38 am
by richmond62
Possiblement vous les avez peut-être sélectionnés par erreur:
-
-
Mais, vous devez sélectionner ceci uniquement:
-
-
Mais, je ne peux pas dupliquer ce message du système.
Нямах единствен чанс за дупликация тоз проблем.
I couldnae get that message, aiblins as I didnae jalouse qhat's ahint it.
Re: Trying to build a MacOS standalone: need Xcode?
Posted: Sun Dec 19, 2021 9:46 am
by richmond62
Avez-vous un autre computer pour essayer cela?
Re: Trying to build a MacOS standalone: need Xcode?
Posted: Sun Dec 19, 2021 10:42 am
by richmond62
Re: Trying to build a MacOS standalone: need Xcode?
Posted: Sun Dec 19, 2021 1:33 pm
by Fjord
Mmmmm…… do you mean that 9.6.2 might not be able to generate a standalone, but 9.6.3 suddenly is? Sounds a bit far fetched, don't you think?
I just tried to create a more-than-simple stack (1 field, 1 bg, 2 cds, you get the idea) and got the same message when I tried to generate a standalone.
I'll rather try to re-install 9.6.2 anew, and keep posting here.
Re: Trying to build a MacOS standalone: need Xcode?
Posted: Sun Dec 19, 2021 1:36 pm
by Fjord
BTW, that very-simple-stack was created with 'New Stack' -> 'Default Size' (400x400 size); after trying to build a standalone it became 754x371. Normal?
Re: Trying to build a MacOS standalone: need Xcode?
Posted: Sun Dec 19, 2021 1:44 pm
by richmond62
Time to delete your LC preferences file, I think.
Re: Trying to build a MacOS standalone: need Xcode?
Posted: Sun Dec 19, 2021 2:27 pm
by Fjord
Tried with 9.6.0., worked like a charm; and compiling in half the time.
Then tried again with 9.6.2. same problem as before.
Where can I find the prefs? I can't seem to find anything called 'Livecode' in
'iBook'>'Big Sur'>'Library' (it's Bibliothèque in French)>Preferences
Re: Trying to build a MacOS standalone: need Xcode?
Posted: Sun Dec 19, 2021 3:12 pm
by Fjord
All right, still with 9.6.0., tried to make a splash screen, following
https://lessons.livecode.com/m/4071/l/1 ... pplication
and
https://lessons.livecode.com/m/4603/l/6 ... n-settings
(for the n-th time in my life

); I got this (there more below but I liked the 'There was
an error…' when there are a thousand errors).What am I to do with these error codes?
Re: Trying to build a MacOS standalone: need Xcode?
Posted: Sun Dec 19, 2021 3:30 pm
by richmond62
Where can I find the prefs? I can't seem to find anything called 'Livecode' in
'iBook'>'Big Sur'>'Library' (it's Bibliothèque in French)>Preferences
Je sais.
/Users/
FredFlintstone/Bibliothèque/Preferences/RunRev/livecode7.rev
Re: Trying to build a MacOS standalone: need Xcode?
Posted: Sun Dec 19, 2021 6:43 pm
by jacque
The top line is the final error and the most meaningful one. The lines underneath are the errors that generated the final one; in other words, the path that led up to the fatal error. Usually looking up the top error is enough.
Standalones use raw LC error codes, which the IDE interprets for you. Go to Sample Stacks in the toolbar and search for a stack called LiveCode Error Lookup or download it from
https://livecodeshare.runrev.com/stack/ ... ror-Lookup/ . That will tell you what the numbers mean. The first number is the error code. The second and third numbers in the line are the line number in the script and the character offset in the line where the error occurred.
Re: Trying to build a MacOS standalone: need Xcode?
Posted: Sun Dec 19, 2021 7:27 pm
by richmond62
a stack called LiveCode Error Lookup
Thank you very much indeed.

Re: Trying to build a MacOS standalone: need Xcode?
Posted: Sun Dec 19, 2021 9:48 pm
by Fjord
Is there a good reason why my stack, which is 470x560, gets elongated when I try to generate the standalone? it is now 721x371…