Page 1 of 2
How to setup Xcode 4.5 to work with LC 5.5.1/5.5.2
Posted: Sat Sep 15, 2012 12:41 am
by seaniepie
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!'
Re: How to setup Xcode 4.5 to work with LC 5.5.1/5.5.2
Posted: Tue Sep 18, 2012 2:55 pm
by ryanb93
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
Re: How to setup Xcode 4.5 to work with LC 5.5.1/5.5.2
Posted: Thu Sep 20, 2012 5:49 pm
by SteveHanlan
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
Re: How to setup Xcode 4.5 to work with LC 5.5.1/5.5.2
Posted: Thu Sep 20, 2012 6:43 pm
by Adrian
Point to the .app file (directory) in your Applications folder and LiveCode will find the stuff within.
Cheers,
Adrian
Re: How to setup Xcode 4.5 to work with LC 5.5.1/5.5.2
Posted: Thu Sep 20, 2012 6:57 pm
by SteveHanlan
Adrian
Tried that, doesn't see 5.0 SDK Platform still ...
Steve
Re: How to setup Xcode 4.5 to work with LC 5.5.1/5.5.2
Posted: Thu Sep 20, 2012 7:03 pm
by jlally
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
Re: How to setup Xcode 4.5 to work with LC 5.5.1/5.5.2
Posted: Thu Sep 20, 2012 7:33 pm
by SteveHanlan
Just installed 5.5.2 - No difference
Steve
Re: How to setup Xcode 4.5 to work with LC 5.5.1/5.5.2
Posted: Thu Sep 20, 2012 10:16 pm
by Adrian
Sorry, I'm away from my system for a few days. Did you follow everything in Sean's original post?
Cheers,
Adrian
Re: How to setup Xcode 4.5 to work with LC 5.5.1/5.5.2
Posted: Thu Sep 20, 2012 10:25 pm
by SteveHanlan
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
Re: How to setup Xcode 4.5 to work with LC 5.5.1/5.5.2
Posted: Thu Sep 20, 2012 10:35 pm
by CALL-151
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?
Re: How to setup Xcode 4.5 to work with LC 5.5.1/5.5.2
Posted: Sat Sep 22, 2012 5:10 pm
by Adrian
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
Re: How to setup Xcode 4.5 to work with LC 5.5.1/5.5.2
Posted: Sun Sep 23, 2012 8:54 pm
by fenick
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
Re: How to setup Xcode 4.5 to work with LC 5.5.1/5.5.2
Posted: Mon Sep 24, 2012 9:18 pm
by cenglish
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
Re: How to setup Xcode 4.5 to work with LC 5.5.1/5.5.2
Posted: Mon Sep 24, 2012 10:34 pm
by Dixie
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
Re: How to setup Xcode 4.5 to work with LC 5.5.1/5.5.2
Posted: Tue Sep 25, 2012 12:16 am
by CALL-151
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