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
Location: Ostenfeld germany
Contact:

Can I force the simulator to open using a device?

Post by malte » Wed Dec 01, 2010 2:11 pm

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
Location: Fredericktown, MO
Contact:

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

Post by ctflatt » Wed Dec 01, 2010 11:05 pm

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
Location: Ostenfeld germany
Contact:

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

Post by malte » Sat Dec 04, 2010 5:50 pm

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: 13829
Joined: Sat Apr 08, 2006 8:41 am
Location: Germany
Contact:

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

Post by Klaus » Sat Dec 04, 2010 6:38 pm

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: 13829
Joined: Sat Apr 08, 2006 8:41 am
Location: Germany
Contact:

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

Post by Klaus » Sat Dec 04, 2010 6:58 pm

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
Location: Fredericktown, MO
Contact:

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

Post by ctflatt » Sun Dec 05, 2010 12:15 am

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
Location: Fredericktown, MO
Contact:

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

Post by ctflatt » Sun Dec 05, 2010 12:16 am

Klaus:

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

:Todd

Klaus
Posts: 13829
Joined: Sat Apr 08, 2006 8:41 am
Location: Germany
Contact:

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

Post by Klaus » Sun Dec 05, 2010 2:41 pm

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
Location: Fredericktown, MO
Contact:

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

Post by ctflatt » Sun Dec 05, 2010 8:55 pm

Klaus:

Consider it forgotten, for the time being...

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

:Todd

Klaus
Posts: 13829
Joined: Sat Apr 08, 2006 8:41 am
Location: Germany
Contact:

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

Post by Klaus » Mon Dec 06, 2010 1:19 pm

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: 13829
Joined: Sat Apr 08, 2006 8:41 am
Location: Germany
Contact:

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

Post by Klaus » Mon Dec 06, 2010 10:11 pm

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
Location: Fredericktown, MO
Contact:

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

Post by ctflatt » Wed Dec 08, 2010 3:48 am

Klaus:

Thanks! Already found it :)

Have a great week!

Post Reply

Return to “iOS Deployment”