Can't build standalone anymore

Deploying to Mac OS? Ask Mac OS specific questions here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
Fredos
Posts: 6
Joined: Sat Aug 29, 2020 4:25 pm

Can't build standalone anymore

Post by Fredos » Sat Aug 29, 2020 4:39 pm

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

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 9287
Joined: Fri Feb 19, 2010 10:17 am
Location: Bulgaria

Re: Can't build standalone anymore

Post by richmond62 » Sat Aug 29, 2020 8:20 pm

Dunno: over "here" on macOS 11.0 beta 5, LC 9.6.1 builds standalones without
a hitch.

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 9579
Joined: Wed May 06, 2009 2:28 pm
Location: New York, NY

Re: Can't build standalone anymore

Post by dunbarx » Sun Aug 30, 2020 2:32 pm

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

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 9287
Joined: Fri Feb 19, 2010 10:17 am
Location: Bulgaria

Re: Can't build standalone anymore

Post by richmond62 » Sun Aug 30, 2020 5:24 pm

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.

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 9287
Joined: Fri Feb 19, 2010 10:17 am
Location: Bulgaria

Re: Can't build standalone anymore

Post by richmond62 » Sun Aug 30, 2020 5:27 pm

Your problem may lie here: it seems to cause a series of "hiccups":
-
Screenshot 2020-08-30 at 19.26.02.png

Fredos
Posts: 6
Joined: Sat Aug 29, 2020 4:25 pm

Re: Can't build standalone anymore

Post by Fredos » Sun Aug 30, 2020 9:13 pm

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

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 9287
Joined: Fri Feb 19, 2010 10:17 am
Location: Bulgaria

Re: Can't build standalone anymore

Post by richmond62 » Mon Aug 31, 2020 5:14 am

Here's that screenshot.
Attachments
Screenshot 2020-08-30 at 19.26.02.zip
(122.47 KiB) Downloaded 214 times

Fredos
Posts: 6
Joined: Sat Aug 29, 2020 4:25 pm

Re: Can't build standalone anymore

Post by Fredos » Mon Aug 31, 2020 11:15 am

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

Fredos
Posts: 6
Joined: Sat Aug 29, 2020 4:25 pm

Re: Can't build standalone anymore

Post by Fredos » Mon Aug 31, 2020 11:36 am

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.

LiveCode_Panos
Livecode Staff Member
Livecode Staff Member
Posts: 818
Joined: Fri Feb 06, 2015 4:03 pm

Re: Can't build standalone anymore

Post by LiveCode_Panos » Tue Sep 01, 2020 11:59 am

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

Fredos
Posts: 6
Joined: Sat Aug 29, 2020 4:25 pm

Re: Can't build standalone anymore

Post by Fredos » Tue Sep 01, 2020 12:10 pm

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.

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 9579
Joined: Wed May 06, 2009 2:28 pm
Location: New York, NY

Re: Can't build standalone anymore

Post by dunbarx » Tue Sep 01, 2020 2:23 pm

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

LiveCode_Panos
Livecode Staff Member
Livecode Staff Member
Posts: 818
Joined: Fri Feb 06, 2015 4:03 pm

Re: Can't build standalone anymore

Post by LiveCode_Panos » Tue Sep 01, 2020 3:46 pm

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
--

rcmills
Posts: 42
Joined: Wed Nov 21, 2018 8:27 pm

Re: Can't build standalone anymore

Post by rcmills » Tue Sep 29, 2020 11:38 pm

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?

Post Reply

Return to “Mac OS”