Unable to use iOS Simulator...

Getting into LiveCode for iOS? Ask your questions here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
paulsr
Posts: 222
Joined: Thu Jul 19, 2012 9:47 am
Contact:

Unable to use iOS Simulator...

Post by paulsr » Thu Aug 30, 2012 4:53 am

Greetings:

I can see a lot of people are having the same problem, but I can't find a solution.

If I attempt to build an iOS app, which I want to run on the simulator, I get an error saying "..device build requires a provisioning profile to be chosen."

For starters, I don't really know what that means. I have not provisioned any physical devices. I want to run the app on the simulator.

If I look at LiveCode->Preferences->Mobile Support I can see I am supposed to specify the location of "developer root." By default it is set to /Applications/Xcode.app/Contents/Developer and I don't seem to be able to set it to anything else.

What is "developer root" and what should it be set to?

/Applications/Xcode.app exists, but how can an .app have sub directories?

BTW: That same Preferences screen shows "Available simulators: 5.1" but I can't persuade LiveCode to use it.

My environment:

Xcode 4.4.1 / LiveCode 5.5.1 Build 1487 / Mac OS X 10.7.4

Can someone put me out of my mysery please...

--paul

endernafi
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 296
Joined: Wed May 02, 2012 12:23 pm
Contact:

Re: Unable to use iOS Simulator...

Post by endernafi » Thu Aug 30, 2012 1:52 pm

Hi Paul,

First of all, apps of OS X have subdirectories because they are directories in fact.
Right click on any of them and click "Show Package Contents", you'll see it.

And you don't have to build anything to run your app on simulator.
Do your settings in Standalone Application Settings, then just click the "Test" button on toolbar.
That's it 8)


Regards,

~ Ender Nafi Elekcioglu
~... together, we're smarter ...~
__________________________________________

macOS Sierra • LiveCode 7 & xCode 8

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7389
Joined: Sat Apr 08, 2006 8:31 pm
Contact:

Re: Unable to use iOS Simulator...

Post by jacque » Thu Aug 30, 2012 5:43 pm

Ender is right, you don't build an app for use in the simulator. But you do need to specify the location of XCode in mobile prefs.

In mobile prefs, click the "X" in the path field to empty it. Then click the button next to the field ("...") and select your XCode app from your Applications folder. Don't worry about the subdirecties, the IDE will figure that out.

Open the standalone settings (File menu) for your stack. Make sure the iOS platform has a checkbox. Fill in any other options you want to use there.

In the Development menu, choose a test target.

Save the stack. Click the Test button.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

programmerBUSLVMD
Posts: 6
Joined: Fri May 04, 2012 5:53 am

Re: Unable to use iOS Simulator...

Post by programmerBUSLVMD » Thu Aug 30, 2012 5:52 pm

A provisioning profile is associated with an apple.com/developer account. You specify the name of your profile in the standalone application settings of the livecode app you are creating. There is a good book recently published on Amazon that will walk you through the steps for Livecode: LiveCode Mobile Development Beginner's Guide and it's less than $15 for the Kindle edition.

paulsr
Posts: 222
Joined: Thu Jul 19, 2012 9:47 am
Contact:

Re: Unable to use iOS Simulator...

Post by paulsr » Fri Aug 31, 2012 3:53 am

Thanks for all the helpful comments folks.

Imagine that! If you want to test something :oops: you have to click the "Test" button. :oops:

--paul

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7389
Joined: Sat Apr 08, 2006 8:31 pm
Contact:

Re: Unable to use iOS Simulator...

Post by jacque » Fri Aug 31, 2012 4:48 pm

:D You're a good sport.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

docHerman
Posts: 29
Joined: Sat Mar 24, 2012 9:20 pm

Re: Unable to use iOS SDK

Post by docHerman » Fri Oct 05, 2012 2:03 pm

Dear all,

I have a problem like this, I think:

When I try to save a stand alone, it says: There was an error while saving the standalone application performing iOS device builds requires the iOS 5.0 SDK platform to be nstalled.

SO I updated Xcode today 5th Oct., but the same problem appears.
I checked the Mobile Support (under Preferences), I suppose the location of developer root isn't correct.
However, when I try to put the 'location of developer root for iOS 5.0 and above', it asks me 'what version of XCode do you have installend: 4.2 or earlier; 4.3'? However, I have 4.5.1. When I select 4.3, and select the XCode program, the following message appears: 'the chosen folder is not a valid iOS SDK for 5.0and latyer. It must be one that ships with XCode 4.2 or later.'

I do not understand: do I need to install an older XCode? Or a newer one? Or do I need and older version of Xcode? :roll:

One other thing: my App 'anamnese' worked fine in iOS 5, however in 6 it doesn't work anymore. Do I have to make an update for iOS 6? :(

Kind regards, Herman

gpb01
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 281
Joined: Sat Jun 04, 2011 5:41 pm

Re: Unable to use iOS SDK

Post by gpb01 » Fri Oct 05, 2012 2:42 pm

docHerman wrote: ....
SO I updated Xcode today 5th Oct., but the same problem appears.
....
Please see here : http://forums.runrev.com/viewtopic.php? ... 949#p62171

Guglielmo

docHerman
Posts: 29
Joined: Sat Mar 24, 2012 9:20 pm

Re: Unable to use iOS Simulator...

Post by docHerman » Fri Oct 05, 2012 3:42 pm

Thank you Guglielmo
But whwere do I get 5.5.3?

Herman

gpb01
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 281
Joined: Sat Jun 04, 2011 5:41 pm

Re: Unable to use iOS Simulator...

Post by gpb01 » Fri Oct 05, 2012 3:59 pm

docHerman wrote:Thank you Guglielmo
But whwere do I get 5.5.3?

Herman
Hi Herman,
if you read well I wrote : "with LiveCode 5.5.3 (when will be officially released) can use xCode 4.5", and ...
... is still NOT released so ... use LiveCode 5.5.2 and xCode 4.4.1 ;)

Guglielmo

docHerman
Posts: 29
Joined: Sat Mar 24, 2012 9:20 pm

Re: 5.5.3

Post by docHerman » Sat Oct 06, 2012 7:43 am

Mmm...
I got 5.5.0 -- where do I get 5.5.2?
When is 3 expected?

H

gpb01
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 281
Joined: Sat Jun 04, 2011 5:41 pm

Re: 5.5.3

Post by gpb01 » Sat Oct 06, 2012 7:56 am

docHerman wrote:Mmm...
I got 5.5.0 -- where do I get 5.5.2?
When is 3 expected?

H
... Normally where you got the 5.5.0 ... in the RunRev Store ... login in your account and download. :)

5.5.3 ... who know ? At moment, the developers have the RC1 (Release Candidate 1) for beta-testing so ... probably in few weeks ...

Guglielmo

Post Reply