Page 1 of 1

Can't build standalone anymore

Posted: Sat Aug 29, 2020 4:39 pm
by Fredos
MacOS Mojave 10 14 6, LiveCode 9 6 1

Since I updated to LC 9 6 1, when trying to build standalone for MacOS, it fails and I get "XCRun error : invalid active developer path"
Same MacOS Mojave 10 14 6 and LiveCode 9 6 0 worked fine.
Looks like scrun is missing from path "Library/Developer/CommandLineTools/usr/bin/" (even whole bin folder missing there)
Copying the whole bin folder from usr didn't fix.
What's the fix ?
Thanks

Re: Can't build standalone anymore

Posted: Sat Aug 29, 2020 8:20 pm
by richmond62
Dunno: over "here" on macOS 11.0 beta 5, LC 9.6.1 builds standalones without
a hitch.

Re: Can't build standalone anymore

Posted: Sun Aug 30, 2020 2:32 pm
by dunbarx
Hi.

So without changing anything, if you try to build your standalone in 9.5 it works fine? And the EXACT same stack file(s) with the exact same procedure fails in 9.6? The exact same inclusions, etc.?

I also had no problems migrating upwards.

Craig

Re: Can't build standalone anymore

Posted: Sun Aug 30, 2020 5:24 pm
by richmond62
Looks like scrun is missing from path "Library/Developer/CommandLineTools/usr/bin/" (even whole bin folder missing there)
-
Screenshot 2020-08-30 at 19.23.24.png
-
I am building standalones without any of that; so that is NOT
your problem.

Re: Can't build standalone anymore

Posted: Sun Aug 30, 2020 5:27 pm
by richmond62
Your problem may lie here: it seems to cause a series of "hiccups":
-
Screenshot 2020-08-30 at 19.26.02.png

Re: Can't build standalone anymore

Posted: Sun Aug 30, 2020 9:13 pm
by Fredos
richmond62 wrote: Your problem may lie here: it seems to cause a series of "hiccups":
-
Screenshot
Can't access the file, can you please send it in message ?
thanks

Re: Can't build standalone anymore

Posted: Mon Aug 31, 2020 5:14 am
by richmond62
Here's that screenshot.

Re: Can't build standalone anymore

Posted: Mon Aug 31, 2020 11:15 am
by Fredos
Thanks for your replies, guys, but unfortunately I cannot see attached files
"You do not have the required permissions to view the files attached to this post."
Anyone sending it by email at fredos(at)me(dot)com ?
Thanks

Re: Can't build standalone anymore

Posted: Mon Aug 31, 2020 11:36 am
by Fredos
Just to mention more infos, I did a fresh install on my MacBook Pro (MacOS 10-14-6 too) where LiveCode never was installed before,
still get the same error when trying to build the standalone.

Re: Can't build standalone anymore

Posted: Tue Sep 01, 2020 11:59 am
by LiveCode_Panos
Hello all,

Try typing this in the Terminal, and then try again to build a standalone (you might need to quit and reopen LC):

Code: Select all

sudo xcode-select --install
This command will hopefully install the missing command line tools that are needed for building the Mac standalone

Re: Can't build standalone anymore

Posted: Tue Sep 01, 2020 12:10 pm
by Fredos
LiveCode_Panos wrote:
Tue Sep 01, 2020 11:59 am
Try typing this in the Terminal, and then try again to build a standalone (you might need to quit and reopen LC):

Code: Select all

sudo xcode-select --install
This command will hopefully install the missing command line tools that are needed for building the Mac standalone
That worked ! Thanks for it.

Re: Can't build standalone anymore

Posted: Tue Sep 01, 2020 2:23 pm
by dunbarx
Panos.
This command will hopefully install the missing command line tools that are needed for building the Mac standalone
Is there anything that might be of general interest in the solution you provided?

Craig

Re: Can't build standalone anymore

Posted: Tue Sep 01, 2020 3:46 pm
by LiveCode_Panos
Hello Craig,

If you build Mac standalones, then you need to keep that in mind. Starting from LC 9.6.0 (I think), the standalone builder includes an ad-hoc signature in the Mac standalones. This was needed for preventing an error on Catalina, if you had built the standalone in a different machine (https://quality.livecode.com/show_bug.cgi?id=22702).

But for adding an ad-hoc signature, you need the codesign tool. This tool is included in Xcode, so if you develop iOS apps and have Xcode already installed, you will not get the error Fredos got. If not, you need to install codesign, and the easiest way to do so is by updating the command line tools, using the terminal command I posted.

Hope this helps.

Kind regards,
Panos
--

Re: Can't build standalone anymore

Posted: Tue Sep 29, 2020 11:38 pm
by rcmills
I recently upgraded to Catalina MacOSX, and to LC 9.6.1. I have installed Xcode 11.5 which has the SDK 13.5, which this version of LC demands, but I am getting the same error message as Fredos when trying standalone build for iOS.

I have tried the terminal command you suggested, but I get a message that the software can't be downloaded because it is not currently available from the Software Update server.

Is there something I am missing?