Page 1 of 1

LiveCode Lagging Behind with Xcode Versions

Posted: Wed Oct 26, 2022 9:22 pm
by LG73
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?

Re: LiveCode Lagging Behind with Xcode Versions

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

Maybe this helps a bit.

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

Kind regards
Bernd

Re: LiveCode Lagging Behind with Xcode Versions

Posted: Wed Oct 26, 2022 10:13 pm
by LG73
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.

Re: LiveCode Lagging Behind with Xcode Versions

Posted: Thu Oct 27, 2022 7:17 pm
by jacque
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.

Re: LiveCode Lagging Behind with Xcode Versions

Posted: Sat Nov 19, 2022 6:28 pm
by Newbie4
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.

Re: LiveCode Lagging Behind with Xcode Versions

Posted: Sun Nov 20, 2022 12:12 am
by LG73
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.

Re: LiveCode Lagging Behind with Xcode Versions

Posted: Mon Nov 21, 2022 11:08 am
by LiveCode_Panos
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
--

Re: LiveCode Lagging Behind with Xcode Versions

Posted: Mon Nov 21, 2022 11:54 am
by LG73
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.

Re: LiveCode Lagging Behind with Xcode Versions

Posted: Mon Nov 21, 2022 2:03 pm
by LiveCode_Panos
Phil,

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

Kind regards,
Panos
--

Re: LiveCode Lagging Behind with Xcode Versions

Posted: Thu Dec 01, 2022 8:53 pm
by dbeugeling
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

Re: LiveCode Lagging Behind with Xcode Versions

Posted: Thu Dec 01, 2022 11:17 pm
by Newbie4
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...

Re: LiveCode Lagging Behind with Xcode Versions

Posted: Fri Dec 02, 2022 1:22 pm
by LiveCode_Panos
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
--