Porting an app from a Mac to an iPad

Getting into LiveCode for iOS? Ask your questions here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Peter K
Posts: 63
Joined: Sat Apr 09, 2011 9:33 pm

Porting an app from a Mac to an iPad

Post by Peter K » Tue May 31, 2011 10:10 pm

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

Peter K
Posts: 63
Joined: Sat Apr 09, 2011 9:33 pm

Re: Porting an app from a Mac to an iPad

Post by Peter K » Tue May 31, 2011 11:11 pm

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,

CALL-151
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 206
Joined: Wed Oct 20, 2010 11:00 am

Re: Porting an app from a Mac to an iPad

Post by CALL-151 » Wed Jun 01, 2011 4:15 am

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.

andyh1234
Posts: 476
Joined: Mon Aug 13, 2007 4:44 pm
Contact:

Re: Porting an app from a Mac to an iPad

Post by andyh1234 » Wed Jun 01, 2011 11:56 am

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.

Peter K
Posts: 63
Joined: Sat Apr 09, 2011 9:33 pm

Re: Porting an app from a Mac to an iPad

Post by Peter K » Thu Jun 02, 2011 12:33 am

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

andyh1234
Posts: 476
Joined: Mon Aug 13, 2007 4:44 pm
Contact:

Re: Porting an app from a Mac to an iPad

Post by andyh1234 » Thu Jun 02, 2011 12:14 pm

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

Peter K
Posts: 63
Joined: Sat Apr 09, 2011 9:33 pm

Re: Porting an app from a Mac to an iPad

Post by Peter K » Fri Jun 10, 2011 3:23 am

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

andyh1234
Posts: 476
Joined: Mon Aug 13, 2007 4:44 pm
Contact:

Re: Porting an app from a Mac to an iPad

Post by andyh1234 » Fri Jun 10, 2011 10:58 am

If you click on the iPad the button on mine shows in the screen on the right, below the details of the device.

Peter K
Posts: 63
Joined: Sat Apr 09, 2011 9:33 pm

Re: Porting an app from a Mac to an iPad

Post by Peter K » Fri Jun 10, 2011 2:22 pm

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

andyh1234
Posts: 476
Joined: Mon Aug 13, 2007 4:44 pm
Contact:

Re: Porting an app from a Mac to an iPad

Post by andyh1234 » Fri Jun 10, 2011 5:02 pm

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.

Peter K
Posts: 63
Joined: Sat Apr 09, 2011 9:33 pm

Re: Porting an app from a Mac to an iPad

Post by Peter K » Fri Jun 10, 2011 5:50 pm

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

andyh1234
Posts: 476
Joined: Mon Aug 13, 2007 4:44 pm
Contact:

Re: Porting an app from a Mac to an iPad

Post by andyh1234 » Fri Jun 10, 2011 6:25 pm

Ah, I dont know about that then, you may need to be a paid developer to be able to deploy to a device.

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

Re: Porting an app from a Mac to an iPad

Post by Klaus » Fri Jun 10, 2011 6:46 pm

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 :?

Peter K
Posts: 63
Joined: Sat Apr 09, 2011 9:33 pm

Re: Porting an app from a Mac to an iPad

Post by Peter K » Sat Jun 11, 2011 1:08 am

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.

Val_UK
Posts: 7
Joined: Fri Jul 22, 2011 3:19 pm

Re: Porting an app from a Mac to an iPad

Post by Val_UK » Fri Jul 22, 2011 8:32 pm

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

Post Reply