Unable to build app for simulation

Getting into LiveCode for iOS? Ask your questions here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
adventuresofgreg
Posts: 349
Joined: Tue Oct 28, 2008 1:23 am
Contact:

Unable to build app for simulation

Post by adventuresofgreg » Sat Apr 23, 2011 11:50 pm

Hi: I installed the SKDs, and did the provisioning, etc. I can select a provisioning profile in the "build stand alone" menu, but I get the following error each time I try to run the simulator:

Unable to build app for simulation: could not find plist template for simulator 4.3 target

Note that I have installed "xcode_3.2.6_and_ios_sdk_4.3"

and I am using LiveCode 4.5.2 - in standalone settings, there does NOT seem to be a selectio for "minimum iOS Version 4.3 - latest version available is 4.2) Perhaps this is why there is an issue??

Thanks for your help,
Greg Kolodziejzyk

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

Re: Unable to build app for simulation

Post by ctflatt » Sat Apr 23, 2011 11:59 pm

Greg:

Launch the iOS Simulator.

Once it's running, look in the application menu bar for Hardware>Version...

Make sure it's set to 4.2 and leave it open.

Try your build again.

Let us know if that works.

:Todd

adventuresofgreg
Posts: 349
Joined: Tue Oct 28, 2008 1:23 am
Contact:

Re: Unable to build app for simulation

Post by adventuresofgreg » Sun Apr 24, 2011 12:33 am

that worked - thanks!

One problem though... When I drag and drop my app to my iPhone 4 using Xcodes Organizer, and as well, when I launch my app in the simulator, it is about TWICE as large as the screen. I sized my stack for the retina display = 640 x 960 yet it's about 2 x larger than the available screen size on both the iPhone 4 and the sim.

Thanks
Greg

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

Re: Unable to build app for simulation

Post by ctflatt » Sun Apr 24, 2011 12:58 am

Greg:

From the same menu bar for the simulator, did you change your device to iPhone (Retina)?

I don't believe this was supported until 4.6, per a previous thread...

http://forums.runrev.com/viewtopic.php? ... ina#p32851

This is from the 4.6 iOS release notes...

To use the full resolution of such high-resolution devices, use the command:
iphoneUseDeviceResolution ( true | false )

But will only work if standalone is from 4.6...

:Todd

adventuresofgreg
Posts: 349
Joined: Tue Oct 28, 2008 1:23 am
Contact:

Re: Unable to build app for simulation

Post by adventuresofgreg » Sun Apr 24, 2011 1:10 am

ah - I'm using LC 4.5.2. Since it doesn't support Retina, is the upgrade to 4.6 a free upgrade - do you know?

Thanks

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

Re: Unable to build app for simulation

Post by ctflatt » Sun Apr 24, 2011 1:14 am

Greg...

I think you have to pay for that one...

HTH,

Todd

adventuresofgreg
Posts: 349
Joined: Tue Oct 28, 2008 1:23 am
Contact:

Re: Unable to build app for simulation

Post by adventuresofgreg » Sun Apr 24, 2011 2:33 pm

I purchased the 4.6 upgrade and there is no "iphone 4 retina" option under the simulator version menu. I can select 4.3 now, but my stack is still showing twice as big as it should on both the simulator and the iPhone 4

I have " iphoneusedeviceresolution "true" in "on preopencard", but this produces an error during opencard.

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

Re: Unable to build app for simulation

Post by ctflatt » Sun Apr 24, 2011 3:40 pm

Greg,

Device choice is in simulator application menu.

Your device resolution script should be in preOpenStack, not preOpenCard...

Check out this thread...

http://forums.runrev.com/phpBB2/viewtop ... ina#p31659

Hope this helps...

Todd

adventuresofgreg
Posts: 349
Joined: Tue Oct 28, 2008 1:23 am
Contact:

Re: Unable to build app for simulation

Post by adventuresofgreg » Sun Apr 24, 2011 8:47 pm

Yep thanks. That all worked great. Next issue - did some searching and will try to play around with things, but if you can give me some tips re loading faster. It loads very slow on the iPhone 4 (12 seconds is a LONG time!). Do you think it could be due to the large number of functions in the stack script, a jpg background image, or loading a large text field into memory (the loading of the text field, and splitting into an array is instant on my Mac, so.. not sure how that compares to processor speed on the iPhone?).

Thanks
Greg

Post Reply

Return to “iOS Deployment”