How to setup Xcode 4.5 to work with LC 5.5.1/5.5.2

Getting into LiveCode for iOS? Ask your questions here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

seaniepie
Posts: 154
Joined: Wed Sep 07, 2011 10:56 am

How to setup Xcode 4.5 to work with LC 5.5.1/5.5.2

Post by seaniepie » Sat Sep 15, 2012 12:41 am

Ok, to get you up and running on XCode4.5:
  • 1. Open up Xcode 4.5
    2. Go to the preferences (cmd-comma)
    3. Go to the Downloads section of the prefs
    4. In the Components section you will see listed iOS5, iOS5.1 and Command Line Tools. Download all of these components. (Note: You CANNOT get <iOS4.x for Xcode 4.5 as it is no longer supported)
    5. When its all downloaded exit Xcode (or not, doesn't matter)
    6. Open LiveCode.
    7. Make sure it's preferences>Mobile Support is pointing to Xcode 4.5 (ask if you don't know how)
    8. Make sure your standalone settings are set to Arm7 only! (Arm6 and Universal are not supported in Xcode 4.5)
    9. Also make sure the standalone settings are set to one of either iOS5.0 OR iOS5.1, nothing else. (Note: Builds for iOS5 or 5.1 will still run on an iOS6 device and simulator. At the time of writing, building for a minimum iOS of iOS6 will not work in either LiveCode 5.5.1 or 5.5.2)
You should now be ready to build your app for >iOS5. Test and create your standalones in the usual way.

If you need to build for <iOS5.0 AND >iOS5.1 then I suggest you have two apps. One for iOS5.1 and under (with Xcode 4.4.x and the Arm set to Universal). The other for iOS5.0 and greater (With Xcode4.5 and set to Arm7).

All the best

Sean Cole
Pi Digital
π
'Don't try to think outside the box. Just remember the truth: There is no box!'

ryanb93
Posts: 7
Joined: Tue Sep 18, 2012 2:48 pm

Re: How to setup Xcode 4.5 to work with LC 5.5.1/5.5.2

Post by ryanb93 » Tue Sep 18, 2012 2:55 pm

Thanks for this,

Is it still possible to support both ARMv6 and ARMv7 devices by simply using an earlier version of xCode and building for a lower version of iOS (say 3.0).

Will an application compiled for iOS 3 in both ARMv6 and ARMv7 (universal) still run on the newer devices running iOS 6? It seems a shame to have to drop support for 5 models of iOS devices.

Also, my application is running fine when launched in the iOS 5 simulator but on the iOS 6 one it immediatly crashes, this is the setup and liveCode is pointing at xCode 4.5
Screen Shot 2012-09-18 at 15.03.42.png

SteveHanlan
Posts: 80
Joined: Fri Jul 09, 2010 6:28 pm

Re: How to setup Xcode 4.5 to work with LC 5.5.1/5.5.2

Post by SteveHanlan » Thu Sep 20, 2012 5:49 pm

I may be missing something here ! (probably due to my Apps failing under iOS 6)

The xCode 4.5 update came from the App Store, therefore no actual download, so where can I find the file to link for Livecode Mobile Support?

thanks

Steve

Adrian
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 79
Joined: Wed Jul 11, 2012 5:03 pm

Re: How to setup Xcode 4.5 to work with LC 5.5.1/5.5.2

Post by Adrian » Thu Sep 20, 2012 6:43 pm

Point to the .app file (directory) in your Applications folder and LiveCode will find the stuff within.

Cheers,

Adrian

SteveHanlan
Posts: 80
Joined: Fri Jul 09, 2010 6:28 pm

Re: How to setup Xcode 4.5 to work with LC 5.5.1/5.5.2

Post by SteveHanlan » Thu Sep 20, 2012 6:57 pm

Adrian

Tried that, doesn't see 5.0 SDK Platform still ...

Steve

jlally
Posts: 33
Joined: Wed Mar 21, 2012 6:48 pm
Location: Portland, OR USA
Contact:

Re: How to setup Xcode 4.5 to work with LC 5.5.1/5.5.2

Post by jlally » Thu Sep 20, 2012 7:03 pm

I'll second what Steve said - pointing directly to the app file did not work for me, either - at least in LC 5.5.1.
Adrian, are you using (and maybe having better luck with) LC 5.5.2?

Thank you,
--John
Lodestone Animation, Inc.
Macaroni Art for iOS

SteveHanlan
Posts: 80
Joined: Fri Jul 09, 2010 6:28 pm

Re: How to setup Xcode 4.5 to work with LC 5.5.1/5.5.2

Post by SteveHanlan » Thu Sep 20, 2012 7:33 pm

Just installed 5.5.2 - No difference

Steve

Adrian
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 79
Joined: Wed Jul 11, 2012 5:03 pm

Re: How to setup Xcode 4.5 to work with LC 5.5.1/5.5.2

Post by Adrian » Thu Sep 20, 2012 10:16 pm

Sorry, I'm away from my system for a few days. Did you follow everything in Sean's original post?

Cheers,

Adrian

SteveHanlan
Posts: 80
Joined: Fri Jul 09, 2010 6:28 pm

Re: How to setup Xcode 4.5 to work with LC 5.5.1/5.5.2

Post by SteveHanlan » Thu Sep 20, 2012 10:25 pm

Followed the instructions for 4.5

When I look at the prefs for Mobile Support, it says Available simulators : 5.1,6.0, yet I still cannot save as standalone
(looking for 5.0 SDK)

Where can I find the 5.0 SDK, now that I have updated to xCode 4.5, just clicking on the app apparently does not find it

Also I note that xCode 'about' no longer shows the SDK's supported

Steve

CALL-151
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 206
Joined: Wed Oct 20, 2010 11:00 am

Re: How to setup Xcode 4.5 to work with LC 5.5.1/5.5.2

Post by CALL-151 » Thu Sep 20, 2012 10:35 pm

Steve,

Launch Xcode 4.5, select Preferences. Click on the Downloads icon and click the Components tab. You should see the 5.1 and 5.0 simulators. Did you install both of them?

Adrian
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 79
Joined: Wed Jul 11, 2012 5:03 pm

Re: How to setup Xcode 4.5 to work with LC 5.5.1/5.5.2

Post by Adrian » Sat Sep 22, 2012 5:10 pm

Just to confirm that I've now gone through the process as originally posted and it all works for me. I did find that you need to point the Mobile Support to the Xcode app after downloading the simulators (even if you did it before).

Cheers,

Adrian

fenick
Posts: 15
Joined: Fri Mar 20, 2009 10:32 pm

Re: How to setup Xcode 4.5 to work with LC 5.5.1/5.5.2

Post by fenick » Sun Sep 23, 2012 8:54 pm

I was having the same issues as many of the other posters here... the test button was not enabled.

Since I am new and have not deployed to mobile before the device to test it on was never set. After realizing that, I went to the "development | Test Target" menu in livecode and selected the iPhone I wanted to test it on.

that then enabled testing for the iPhone and all worked well.

I am now waiting for Apple to send me my provisioning so I can test on an actual iPhone

cenglish
Posts: 34
Joined: Wed May 11, 2011 6:44 pm
Location: LA, USA

Re: How to setup Xcode 4.5 to work with LC 5.5.1/5.5.2

Post by cenglish » Mon Sep 24, 2012 9:18 pm

I'm still having issues after trying this out. (I'm running Mountain Lion and LiveCode 5.5.2 and xCode 4.5)I've made sure of the following:

1. Had all components installed in xcode 4.5 from the Preferences>Downloads tab.

2. I made sure to select the Mobile Support directory for iOS 5.0 or later is set to xCode 4.5 (Selected it three different times)

3. Made sure that my standalone settings were set for Arm7 only and iOS 5.0 or later (not 6.0)

The strange thing is that I can run it on the simulator now, but when I go to save as a standalone to put it on my devices, it throws an error still asking for iOS 5.0 SDK

Anyone else having this problem? I've tried this multiple times to try and work and the best I can get is to work on the simulator, but I need to actually deploy to a device. Thanks

Dixie
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 1336
Joined: Sun Jul 12, 2009 10:53 am
Location: Bordeaux, France

Re: How to setup Xcode 4.5 to work with LC 5.5.1/5.5.2

Post by Dixie » Mon Sep 24, 2012 10:34 pm

cenglish…

You have mountain lion
You have xCode 4.5

Now, download xCode 4.4.1
You will find it at :- https://developer.apple.com/downloads/index.action

Go to your applications folder and rename the xCode .app file to 'xCode 4.5'
put the 4.4.1 download into your applications folder and name in 'xCode 4.4'

if you want to run in the simulator then :-
Open the stack with LC 5.5.1
In LC prefs - Mobile Support - point to the xCode 4.5 app file
Set the settings in the standalone settings to say 5.1 and arm7.

if you want to build a standalone then :-
Open the stack with LC 5.5.1
In LC prefs - Mobile Support - point to the xCode 4.4 app file
Set the settings in the standalone settings to say 5.1 and arm7.

be well,

Dixie

CALL-151
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 206
Joined: Wed Oct 20, 2010 11:00 am

Re: How to setup Xcode 4.5 to work with LC 5.5.1/5.5.2

Post by CALL-151 » Tue Sep 25, 2012 12:16 am

For an alternative solution that doesn't require constantly switching your mobile prefs see this thread:

http://forums.runrev.com/viewtopic.php?f=49&t=12316

Post Reply

Return to “iOS Deployment”