LiveCode Lagging Behind with Xcode Versions

Getting into LiveCode for iOS? Ask your questions here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
LG73
Posts: 33
Joined: Fri Jun 05, 2009 8:25 am
Location: Vancouver, BC, Canada
Contact:

LiveCode Lagging Behind with Xcode Versions

Post by LG73 » Wed Oct 26, 2022 9:22 pm

I'm now running macOS 13 Ventura which requires Xcode 14 or newer. The latest LiveCode 9.6.9 RC1 dates back to August 9th and does not work with Xcode 14.0.1 or Xcode 14 RC2. That means no way to compile for iOS with LiveCode in macOS 13. Why does LiveCode always lag behind in iOS SDK support? Not ideal having to maintain 2 versions of Xcode (when there are 2 available that are compatible) just to compile LiveCode apps for iOS.

Is it really that difficult to keep up-to-date with the iOS SDKs and Xcode versions?
Cheers,

Phil
LG73 - Vancouver's Hit Music Mix!
http://www.LG73.ca/

bn
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3975
Joined: Sun Jan 07, 2007 9:12 pm
Location: Bochum, Germany

Re: LiveCode Lagging Behind with Xcode Versions

Post by bn » Wed Oct 26, 2022 9:47 pm

Hi Phil,

Maybe this helps a bit.

https://www.mail-archive.com/use-liveco ... 16857.html

Kind regards
Bernd

LG73
Posts: 33
Joined: Fri Jun 05, 2009 8:25 am
Location: Vancouver, BC, Canada
Contact:

Re: LiveCode Lagging Behind with Xcode Versions

Post by LG73 » Wed Oct 26, 2022 10:13 pm

bn wrote:
Wed Oct 26, 2022 9:47 pm
Hi Phil,

Maybe this helps a bit.

https://www.mail-archive.com/use-liveco ... 16857.html

Kind regards
Bernd
Hi Bernd,

I don't have any problems running LiveCode 9.6.9 RC 1 in macOS Ventura. The issue is with Xcode which must be version 14 or newer to run in macOS Ventura. So that results in the typical LiveCode incompatibility with current versions of the iOS SDK.
Screenshot 2022-10-26 at 2.06.07 PM.jpg
Xcode 14 was released on Sept 12th, 1.5 months ago. That's the oldest version that can be used in macOS 13.
Cheers,

Phil
LG73 - Vancouver's Hit Music Mix!
http://www.LG73.ca/

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7210
Joined: Sat Apr 08, 2006 8:31 pm
Location: Minneapolis MN
Contact:

Re: LiveCode Lagging Behind with Xcode Versions

Post by jacque » Thu Oct 27, 2022 7:17 pm

From the mailing list: https://www.mail-archive.com/use-liveco ... 6864.html

This is the workaround for now:
1. Rename the version of the Xcode app required by Livecode (e.g. version 13.2) to 'Xcode 13.2’.

2. In Livecode Preferences -> Mobile Support select the Xcode 13.2 app as the
location for iOS SDKs.

3. Download version Xcode 14.1 RC2 from the Apple Developer site.

4. When Xcode 14.1 is installed as Xcode app in the applications folder, launch
Xcode and select ‘Simulator’ from the Xcode -> Open Developer Tool menu.

5. In the dock, control click (right click) on the Simulator icon select
Options -> Keep in Dock - this allows you to launch the Simulator app at will.

6. With the desired simulated device open use Livecode’s Development -> Test to launch your app in the open Simulator. This has worked fine for me so far!

Also (as others have pointed out), the Xcode 13.2 app is disabled under Mac OS Ventura. You can still select it as the source of Livecode’s iOS SDKs but you cannot launch the app.
Edit: I realize this isn't for building standalones but at least you can use the simulator. It may also work for standalones, you can try it.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

Newbie4
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 327
Joined: Sun Apr 15, 2012 1:17 am
Location: USA
Contact:

Re: LiveCode Lagging Behind with Xcode Versions

Post by Newbie4 » Sat Nov 19, 2022 6:28 pm

Thanks, but I need to build the standalone.

I guess my only recourse is to create a virtual machine and install an older version of MacOS and build it from there (if that is possible II've never done that)

or wait until RunRev releases a new version that works with MacOS 13 and higher.
Cyril Pruszko
https://sites.google.com/a/pgcps.org/livecode/
https://sites.google.com/a/setonhs.org/app-and-game-workshop/home
https://learntolivecode.com/

LG73
Posts: 33
Joined: Fri Jun 05, 2009 8:25 am
Location: Vancouver, BC, Canada
Contact:

Re: LiveCode Lagging Behind with Xcode Versions

Post by LG73 » Sun Nov 20, 2022 12:12 am

Newbie4 wrote:
Sat Nov 19, 2022 6:28 pm
Thanks, but I need to build the standalone.

I guess my only recourse is to create a virtual machine and install an older version of MacOS and build it from there (if that is possible II've never done that)

or wait until RunRev releases a new version that works with MacOS 13 and higher.
Word through the grapevine is LiveCode 9.6.9 (rc 3) will work with Xcode 14 (or maybe a newer variant) which will solve this same issue I have where it's currently impossible to compile iOS apps with LiveCode in macOS 13.0.1.
Cheers,

Phil
LG73 - Vancouver's Hit Music Mix!
http://www.LG73.ca/

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

Re: LiveCode Lagging Behind with Xcode Versions

Post by LiveCode_Panos » Mon Nov 21, 2022 11:08 am

Hello all,

You should be able to build iOS standalones on MacOS Ventura with Xcode 13.2.x.

When building an iOS standalone, LiveCode uses some command line tools and iOS SDKs that are bundled within the specific Xcode version that the particular LiveCode version requires.

So, even if Xcode 13.2.x cannot run on MacOS Ventura, this is not a problem, since you won't have to run Xcode 13.2.x directly. You just need to have it installed and point to it in LiveCode Preferences.

Hope this helps.

Kind regards,
Panos
--

LG73
Posts: 33
Joined: Fri Jun 05, 2009 8:25 am
Location: Vancouver, BC, Canada
Contact:

Re: LiveCode Lagging Behind with Xcode Versions

Post by LG73 » Mon Nov 21, 2022 11:54 am

LiveCode_Panos wrote:
Mon Nov 21, 2022 11:08 am
Hello all,

You should be able to build iOS standalones on MacOS Ventura with Xcode 13.2.x.

When building an iOS standalone, LiveCode uses some command line tools and iOS SDKs that are bundled within the specific Xcode version that the particular LiveCode version requires.

So, even if Xcode 13.2.x cannot run on MacOS Ventura, this is not a problem, since you won't have to run Xcode 13.2.x directly. You just need to have it installed and point to it in LiveCode Preferences.

Hope this helps.

Kind regards,
Panos
--
Hi Panos,

There was one important piece missing from your instructions. Just pointing to Xcode 13.2.1 in LiveCode then attempting to build an iOS standalone resulted in this error:
Screenshot 2022-11-21 at 10.31.32 AM.jpg
The missing link was to run xcode-select in Terminal (with sudo) and select the Xcode 13.2.1 app bundle. Then LiveCode 9.6.9 (rc 2) was able to build the iOS standalone in macOS Ventura.
Cheers,

Phil
LG73 - Vancouver's Hit Music Mix!
http://www.LG73.ca/

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

Re: LiveCode Lagging Behind with Xcode Versions

Post by LiveCode_Panos » Mon Nov 21, 2022 2:03 pm

Phil,

Indeed, you are correct, thank you for pointing out this missing step.

Kind regards,
Panos
--

dbeugeling
Posts: 12
Joined: Thu Feb 12, 2015 12:22 pm

Re: LiveCode Lagging Behind with Xcode Versions

Post by dbeugeling » Thu Dec 01, 2022 8:53 pm

Hello Panos and Phil,

Could you give us a clear procedure to make a standalone work with Xcode 13?
I don't understand what you ment by running Terminal with sudo Xcode 13?

Thanks,

Dirk

Newbie4
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 327
Joined: Sun Apr 15, 2012 1:17 am
Location: USA
Contact:

Re: LiveCode Lagging Behind with Xcode Versions

Post by Newbie4 » Thu Dec 01, 2022 11:17 pm

This is what I did that worked. Try doing them in order:
1a. Download Xcode 13.2.1 and install it.
- Move this version into another folder or rename it (e.g. xcode_13_2_1)
- You do not want it overwritten when you download a newer copy of Xcode.
- This is the latest version of Xcode that LiveCode (versions 9.6.9 rc2 or 10.0.0 dp4) builds standalones with.

1b. Point LiveCode to this version
- Open up your project in LiveCode --> Click on "LiveCode", click on "Preferences", click on "Mobile Support" and add an entry to "IOS SDKs" that points to where you put your Xcode 13.2.1

1c. Build the standalone.


2a. Downloaded Xcode 14.1 and install it.
- This is the version that is required for the MacOS Ventura that is on your computer

2b. Run this version of Xcode to install the standalone on your phone
I hope this helps...
Cyril Pruszko
https://sites.google.com/a/pgcps.org/livecode/
https://sites.google.com/a/setonhs.org/app-and-game-workshop/home
https://learntolivecode.com/

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

Re: LiveCode Lagging Behind with Xcode Versions

Post by LiveCode_Panos » Fri Dec 02, 2022 1:22 pm

Hello all,

If your device runs a newer iOS version, then you do NOT need to download a newer version of Xcode for installing the standalone to your device. You can just use your current Xcode version. You might see a warning that your device iOS version is not supported by this version of Xcode or something like this, but you can safely ignore it and install the built iOS app in your device.

Kind regards,
Panos
--

Post Reply

Return to “iOS Deployment”