Porting an app from a Mac to an iPad
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
Porting an app from a Mac to an iPad
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
Thanks in advance,
Peter
Re: Porting an app from a Mac to an iPad
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,
Thanks,
Re: Porting an app from a Mac to an iPad
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.
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
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.
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
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
Thanks,
Peter
Re: Porting an app from a Mac to an iPad
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
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
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
Where is the use for development button? I can't find it?
Peter
Re: Porting an app from a Mac to an iPad
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
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
Thanks,
Peter
Re: Porting an app from a Mac to an iPad
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.

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
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
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
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
Hi folks,
You need to be a paid and registered Apple iOS developer even to only deliver on your own iDevice
Yes, that's true!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.
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
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
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
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