Can I force the simulator to open using a device?

Getting into LiveCode for iOS? Ask your questions here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
malte
Posts: 1098
Joined: Thu Feb 23, 2006 8:34 pm
Contact:

Can I force the simulator to open using a device?

Post by malte »

Hi all,

going a bit nuts here. I want to build a project for all iP* devices and try to tackle this mentally. What is a bit enerving, is that the simulator always launches with the iPad as a chosen device and when I then switch to iPhone in the simulator the app is suspended. Is there any way to tell the simulator which device it should launch with?

All the best,

malte
ctflatt
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 243
Joined: Sun Dec 06, 2009 12:24 am
Contact:

Re: Can I force the simulator to open using a device?

Post by ctflatt »

Malte:

Hello, there! You've helped me out several times, hopefully this will help you.

Before clicking "Start" from the mobile plugin, click the plist button in the mobile app window. Here you set the device before the simulator launches, and can change it on the fly by stopping the simulator, choosing another, then restarting.

Hope this helps you out.

:Todd
malte
Posts: 1098
Joined: Thu Feb 23, 2006 8:34 pm
Contact:

Re: Can I force the simulator to open using a device?

Post by malte »

Hi Todd,

thanks for the suggestion, however, if I select all 3 (iPod,Phone and Pad) the dradded simulator always opens in iPad mode. :-(
If I then change the device in the simulator, the app is quit and it starts in the ipad simulator again. grmbl.

Thanks anyway.

Malte
Klaus
Posts: 14325
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Can I force the simulator to open using a device?

Post by Klaus »

Hi Malte,

yep, same problem here :-/

I got my personal iOS license yesterday and wanted to try the examples with the new native iOS controls, but do not get it to work.
The simulator always opens as iPad, then an iPhone silhouette appears inside of the iPad and the app crashes, but not the simulator.
Switching the device in the simulator works, but only until you start the app again in the Livecode mobile plugin.
Very annoying.

Best

Klaus
Klaus
Posts: 14325
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Can I force the simulator to open using a device?

Post by Klaus »

I just tested the other two examples "Browser Example.livecode" und"Orientation Example.livecode" and they worked.
But here also an iPhone apperad inside of the initial iPad in the simulator. Looks like this is the way it works?

"Webview" works fine, but you cannot zoom in or out, which makes thi pretty useless, at least at this point :D
"Scroller example.livecode" shows the afore mentioned problems -> crashes every time.

Best

Klaus
ctflatt
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 243
Joined: Sun Dec 06, 2009 12:24 am
Contact:

Re: Can I force the simulator to open using a device?

Post by ctflatt »

Malte, Klaus, et al.

Prior to iOS 4.2, the iPad's iOS version was 3.2 and below. The standard functionality of apps created for "all three" was to build for iPhone, and the app ran the iPhone size on an iPad (with the 2x toggle button in the lower right corner of the running app's UI).

I believe that prior to iOS 4.2, you had to build two versions targeted to the iPhone/iPod size, and the iPad size.

The mobile plugin doesn't yet support iOS 4.2, which was just released. Perhaps the next release of the plugin will provide that support?

Does this sound correct?

Thanks!

:Todd
ctflatt
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 243
Joined: Sun Dec 06, 2009 12:24 am
Contact:

Re: Can I force the simulator to open using a device?

Post by ctflatt »

Klaus:

Where are these samples you're referring to? I'd like to get my hands on them, if possible.

:Todd
Klaus
Posts: 14325
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Can I force the simulator to open using a device?

Post by Klaus »

Hi Todd,

sorry, I thought they were in the ZIP file with the latest iOS plug in, but actually they are in the pre-release (RC1) of the upcoming Livecode 4.5.2 distribution.
This should be released in a couple of days.

Until then please forget that I mentioned it 8)


Best

Klaus
ctflatt
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 243
Joined: Sun Dec 06, 2009 12:24 am
Contact:

Re: Can I force the simulator to open using a device?

Post by ctflatt »

Klaus:

Consider it forgotten, for the time being...

Did you read my response to the thread above that? Any thoughts?

:Todd
Klaus
Posts: 14325
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Can I force the simulator to open using a device?

Post by Klaus »

Hi Todd,

yes, I read your posting, but I have to admit, that I know too little about the whole iOS stuff (yet) to give any meaningful answer :?


Best

Klaus
Klaus
Posts: 14325
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Can I force the simulator to open using a device?

Post by Klaus »

Todd, you can cancel your partly amnesia now :D

Check menu: "Help" -> "Example Stacks and Resources" in Livecode 4.5.2!
ctflatt
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 243
Joined: Sun Dec 06, 2009 12:24 am
Contact:

Re: Can I force the simulator to open using a device?

Post by ctflatt »

Klaus:

Thanks! Already found it :)

Have a great week!
Post Reply