XCode version for LC 10.0.0 (dp4) and IOS 15.6

Getting into LiveCode for iOS? Ask your questions here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
per_bodelius
Posts: 20
Joined: Mon Mar 19, 2018 11:25 pm

XCode version for LC 10.0.0 (dp4) and IOS 15.6

Post by per_bodelius » Fri Aug 26, 2022 5:12 pm

Hi!
I have build apps for IOS earlier, but now IOS (Iphone) have reached version 15.6 and I cannot find any working combination of Livecode and XCode for building. My current installation is LC 10.0.0.(dp4) and Xcode 13.2 but I can´t install my produced apps no longer. Any solutions?
Best regards
Per B

per_bodelius
Posts: 20
Joined: Mon Mar 19, 2018 11:25 pm

Re: XCode version for LC 10.0.0 (dp4) and IOS 15.6

Post by per_bodelius » Sun Aug 28, 2022 3:17 pm

The Apple documentation tells that I need to upgrade to Xcode 13.4.1 in order to produce apps for IOS 15.6.
Is it compatible with any version of LC? Or when will a compatible version of LC be available?
I really need this working ASAP...
Best regards
Per B

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

Re: XCode version for LC 10.0.0 (dp4) and IOS 15.6

Post by bn » Sun Aug 28, 2022 4:58 pm

Hi Per,

sorry I am not of help here but from what I gather the release notes of each version of LC have an overview of what iOS versions are supported and which Xcode provides that. From my understanding you do not have to build for 15.6 for your software to run on 15.6. Hopefully Panos will see your post tomorrow and gives a qualified answer.

Kind regards
Bernd

Virgil
Posts: 6
Joined: Tue Jul 31, 2012 11:15 pm

Re: XCode version for LC 10-0-0 (dp4) and IOS 15-6

Post by Virgil » Tue Sep 06, 2022 12:11 pm

Try building your app with 9-6-9 with Xcode 13-2 set in your LC preferences.
Then use Xcode 13-4 to load your app to your iOS 15-6 device.
Hope that helps.

Virgil

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

Re: XCode version for LC 10.0.0 (dp4) and IOS 15.6

Post by Newbie4 » Fri Nov 18, 2022 11:02 pm

I too am no longer able to build an iOS standalone.

@Virgil - I followed your directions but was not successful.

I am on MacOS Ventura 13.0.1 I tried running Xcode 13.2.1 but I get the error - "In order to use "Xcode_13_2_1.app", you need to update to the latest version.The version of Xcode installed on this Mac is not compatible with macOS Ventura. Download the latest version for free from the App Store."

I pointed LC to it anyway and when I try to create a standalone, I get the message: "There was an error while saving the standalone application linking for arm (arm64) failed with 2022-11-18 16:58:12.395 xcodebuild[53475:2849330] Writing error result bundle to
/var/folders/qw/p1w71_rs43v4_psd9q7wctqc0000gn/T/ResultBundle2022-18-11_16-58-0012.xcresult xcodebuild: error: SDK "iphoneos15.2" cannot be located. xcrun: error: sh -c'/Applications /Xcode 152.app/Contents/Developer/us/bin/xcodebuild -sdk iphoneos15.2 -find g+ + 2> / dev/null' failed with exit code 16384: (null) (errno=No such file or directory) xcrun: error: unable to find utility "g++", not a developer tool or in PATH"
I downloaded Xcode 15.2 and pointed LC to it also.

I got the message "There was an error while saving the standalone application linking for arm (arm64) failed with 2022-11-17 17:02:09.149 xcodebuild[48358:2572757] Writing error result bundle to /var/folders/qw/p1w71_rs43v4_psd9q7wctqc0000gn/T/ResultBundle_2022-17-11_17-02-0009.xcresult xcodebuild: error: SDK "iphoneos15.2" cannot be located. xcrun: error: sh -c'/Applications /Xcode152.app/Contents/Developer/us/bin/xcodebuild -sdk iphoneos15.2 -find g+ + 2> / dev/null' failed with exit code 16384: (null) (errno=No such file or directory). xcrun: error: unable to find utility "g++", not a developer tool or in PATH"

I tried many other combinations and versions of Xcode and LC but with no success.

Any suggestions? Is any one else having any success? I think it might be the last MacOS update that broke it. Is there anything else I can do to get around this?

Thank you
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/

stam
Posts: 2599
Joined: Sun Jun 04, 2006 9:39 pm
Location: London, UK

Re: XCode version for LC 10.0.0 (dp4) and IOS 15.6

Post by stam » Sat Nov 19, 2022 11:57 am

Newbie4 wrote:
Fri Nov 18, 2022 11:02 pm
I got the message "There was an error while saving the standalone application linking for arm (arm64) failed with 2022-11-17 17:02:09.149 xcodebuild[48358:2572757] Writing error result bundle to /var/folders/qw/p1w71_rs43v4_psd9q7wctqc0000gn/T/ResultBundle_2022-17-11_17-02-0009.xcresult xcodebuild: error: SDK "iphoneos15.2" cannot be located. xcrun: error: sh -c'/Applications /Xcode152.app/Contents/Developer/us/bin/xcodebuild -sdk iphoneos15.2 -find g+ + 2> / dev/null' failed with exit code 16384: (null) (errno=No such file or directory). xcrun: error: unable to find utility "g++", not a developer tool or in PATH"

I tried many other combinations and versions of Xcode and LC but with no success.

Any suggestions? Is any one else having any success? I think it might be the last MacOS update that broke it. Is there anything else I can do to get around this?

Thank you
Hi Cyril

can I check - was the error above generated by LiveCode? And that you have copied it verbatim?

I ask because the path in the error is missing an 'r':
it should be /Applications /Xcode152.app/Contents/Developer/usr/bin/xcodebuild

so if that's not a copy/paste error and it was generated while trying to build the iPhone app in LC, then it's probably a bug typo in LC's code.... But then again, if you were able to build with previous versions of LC and you've used same older versions now then it's probably not that...

I note that a file g++ exists in the above directory, but that it's a symlink to gcc - I presume that has always been the case but if not, maybe that's the problem... either way, sounds like it's something LC will need to address I think...

----
EDIT: actually the path is wrong anyway - the correct path to g++ is:

Code: Select all

/Applications/Xcode.app/Contents/Developer/usr/bin/g++
There is no /bin/xcodebuild/ directory in the current version of Xcode (14.1)


This may indeed be a change from previous versions and if LC depended on that path this would have broken it if changed - if you have previous versions of Xcode you could maybe check that such a folder existed and yes then this is the problem - and would need a bug report to speed things up...

S.

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

Re: XCode version for LC 10.0.0 (dp4) and IOS 15.6

Post by Newbie4 » Sat Nov 19, 2022 5:38 pm

Hi Stam, Thanks for replying.

The message does say "usr". When I copied the message and eliminated 'line feeds/cr's, I must have accidentally changed it.

I was using Xcode 15.2 because it will not let me use Xcode 14.1 I get the message "The chosen folder is not a valid iOS SDK.
Selected Xcode must have an iOS SDK among:
12.1
13.2
14.4
15.2"

So I do not know which version of Xcode or LiveCode to use to be able to build an iOS standalone. No combination seems to work with Ventura 13.0.1

Any other suggestions for me to try?

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

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

Re: XCode version for LC 10.0.0 (dp4) and IOS 15.6

Post by jacque » Sat Nov 19, 2022 6:23 pm

Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

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

Re: XCode version for LC 10.0.0 (dp4) and IOS 15.6

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

Hello all,

So, the iOS version of the target device is not the same as the version of the iOS SDK that is included in Xcode and it is used to build the iOS standalone.

The former usually does not affect the Xcode version that is required, except from some occasions, for example if the iOS device runs iOS 15.x then you need to use at least Xcode 13.x. Note that you do not need to use the latest Xcode version for that.

The latter (i.e. the version of the iOS SDK that is included in Xcode) does affect the Xcode version that is required. So, if you are using LiveCode 9.6.9 RC-X or 10 DP-4 and you are on MacOS Big Sur or above, then you need Xcode 13.2 (which includes the iOS 15.2 SDKs).

Note that on MacOS Ventura Xcode 13.2.x cannot run - this is not a problem though, since you do not need to run Xcode 13.2.x directly - it just has to "be there" for LiveCode to use the iOS 15.2 SDKs (and some other command line tools).

Hope this helps.

Kind regards,
Panos
--

Post Reply

Return to “iOS Deployment”