Page 1 of 2

Porting an app from a Mac to an iPad

Posted: Tue May 31, 2011 10:10 pm
by Peter K
I've been trying to figure out how to port an application that I created on a Mac to an iPad. It should be straightforward, but I can't find any info on it. The app has an SQLite database (just as an FYI).

Thanks in advance,

Peter

Re: Porting an app from a Mac to an iPad

Posted: Tue May 31, 2011 11:11 pm
by Peter K
I'm not trying to create an app that I will sell through the Apple store. This is for my use (and maybe some people that work in my company).

Thanks,

Re: Porting an app from a Mac to an iPad

Posted: Wed Jun 01, 2011 4:15 am
by CALL-151
You might want to start with http://lessons.runrev.com/spaces/lesson ... n-for-iOS-

You'll also need to read the iOS Release Notes (available under the LiveCode Help pulldown menu). Pay particular attention to the section that describes what does and does not work.

Re: Porting an app from a Mac to an iPad

Posted: Wed Jun 01, 2011 11:56 am
by andyh1234
Sqllite is not a problem, the iOS build supports that.

The main changes are making everything touchable, rather than clickable. Same code, but the targets tend to need to be bigger to allow for fingers, and its a good idea to catch 'mouserelease' as well as mouseup as its easy for a finger to move between clicking a button and letting go, which causes a mouserelease rather than a mouseup to be fired.

Re: Porting an app from a Mac to an iPad

Posted: Thu Jun 02, 2011 12:33 am
by Peter K
I've updated my license and registered as a developer with Apple. On the tutorial to build a standalone for iOS I'm supposed to put in the device profile that I created when I registered with Apple. Where do you enter this when you register as a developer with Apple?

Thanks,


Peter

Re: Porting an app from a Mac to an iPad

Posted: Thu Jun 02, 2011 12:14 pm
by andyh1234
The easiest way I find to test on the real devices is to let xCode set up team provisioning profiles for each device.

To do this simply connect your iPhone, iPod, iPad etc to your computer, start xCode and click on the Window menu option, then 'Organizer'. Your device should show and you can click the 'use for development' button. xCode then asks you for your developer login info and automatically uploads the device profile and creates a provisioning profile for the device.

Once this is completed, when you restart Livecode a profile will appear called 'Team Provisioning Profile' which you can use to create standalones to test on your devices. Once you have compiled the app, you go back to the same screen in xCode to install in on your device.

To create distribution profiles you have to log in and create them at developer.apple.com, there is no shortcut for those.

Andy

Re: Porting an app from a Mac to an iPad

Posted: Fri Jun 10, 2011 3:23 am
by Peter K
I connected the iPad to the Mac. I started up xCode and clicked on the window menu option, then organizer. The device that shows up on the left is the iPad.

Where is the use for development button? I can't find it?

Peter

Re: Porting an app from a Mac to an iPad

Posted: Fri Jun 10, 2011 10:58 am
by andyh1234
If you click on the iPad the button on mine shows in the screen on the right, below the details of the device.

Re: Porting an app from a Mac to an iPad

Posted: Fri Jun 10, 2011 2:22 pm
by Peter K
In the organizer there is a provisioning box. I pressed the "+" sign and a drop down box appears. Under places I go to applications and then Livecode. The system that I wrote appears but it is grayed out. I can't choose it. Any ideas?

Thanks,

Peter

Re: Porting an app from a Mac to an iPad

Posted: Fri Jun 10, 2011 5:02 pm
by andyh1234
It sounds like we have different versions of xCode :)

The + will be asking you to browse for a certificate you have created through the portal at developer.apple.com.

Ill try upgrading my xCode to the latest version as soon as I get time to see what the options are now, I cant see Apple making it harder to authorise a device and create a team developer profile.

All this btw has nothing to do directly with Livecode, once your device is authorised and a profile installed in xCode, Livecode will pick this up so you can use it with your apps.

Re: Porting an app from a Mac to an iPad

Posted: Fri Jun 10, 2011 5:50 pm
by Peter K
Is there anything that I have to pre-install on my iPad? When I registered to become an Applce developer I don't think that they downloaded anything to my Mac. I believe that xCode was already on the machine.

I didn't pay to become an Applce developer since I'm not going to try and sell the app, I just registered.

Thanks,

Peter

Re: Porting an app from a Mac to an iPad

Posted: Fri Jun 10, 2011 6:25 pm
by andyh1234
Ah, I dont know about that then, you may need to be a paid developer to be able to deploy to a device.

Re: Porting an app from a Mac to an iPad

Posted: Fri Jun 10, 2011 6:46 pm
by Klaus
Hi folks,
andyh1234 wrote:Ah, I dont know about that then, you may need to be a paid developer to be able to deploy to a device.
Yes, that's true!
You need to be a paid and registered Apple iOS developer even to only deliver on your own iDevice :?

Re: Porting an app from a Mac to an iPad

Posted: Sat Jun 11, 2011 1:08 am
by Peter K
I paid to be an iOS developer and now they have to send me a disk or something. It's supposed to take up to 5 days. I can't believe that I can't download it from Apple.

Re: Porting an app from a Mac to an iPad

Posted: Fri Jul 22, 2011 8:32 pm
by Val_UK
Hi, guys,
How can I call different commands based on what menu is selected in Pulldown Menu button. I know how to do it in RealBasic but I have not figured out how to do it in LiveCode.
Any help is very appreciated.
Val