How to customize myapp-Info.plist before building?

Getting into LiveCode for iOS? Ask your questions here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
fs42
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 7
Joined: Thu Jun 30, 2011 12:03 am

How to customize myapp-Info.plist before building?

Post by fs42 » Sat Jul 09, 2011 5:58 am

I'm trying to make the URL-launching work for LiveCode-apps.

The first step is to add the following entries to the myapp-Info.plist:

Code: Select all


        <key>CFBundleURLTypes</key>
	<array>
		<dict>
			<key>CFBundleURLName</key>
			<string>com.creativeapptitude.myapp</string>
			<key>CFBundleURLSchemes</key>
			<array>
				<string>myapp</string>
			</array>
		</dict>
	</array>
My problem is that I cannot find that myapp-Info.plist...

I understand that the IOS Standalone Application Settings screen is essentially generating many of the plist entries, but I do not seem to be able to add my own entries, nor do I have access to that plist file itself.

Any help/pointer is appreciated.

Regards, FrankS.

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

Re: How to customize myapp-Info.plist before building?

Post by jacque » Sat Jul 09, 2011 6:41 pm

In the Mac pane of standalone settings, there is an option to include your own plist file instead of having one generated automatically for you. Select "Choose a plist file" and point the file reference to your own file on disk. The standalone builder will use that one instead of creating its own. If you do that, you need to keep up with any plist changes yourself before building (such as version number changes) because the standalone builder won't even look at the file, it will simply add it to the build.

If you need a template plist to start from, let the standalone builder do its default thing and make a plist for you. Look in the contents of the app bundle and grab the plist from there. Use that as the template for future included plists.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

fs42
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 7
Joined: Thu Jun 30, 2011 12:03 am

Re: How to customize myapp-Info.plist before building?

Post by fs42 » Sun Jul 10, 2011 1:42 am

@jacque - thanks for the pointer.

Now... I do not have a Mac development license, which seems to be required for me to configure any of those plist-options that are grey'ed-out for me.

Could you or anyone else confirm that changing that plist-file setting as you suggested in the Mac application configuration, would also have the desired effect for the IOS-building of the app?

I did get a little closer to a solution by at least showing that it would work:

if I run the "rresocket" demo app in the IOS Simulator, and then change the Info.plist of the app that runs in the simulator by adding the snippet:

Code: Select all

	<key>CFBundleURLTypes</key>
	<array>
		<dict>
			<key>CFBundleURLName</key>
			<string>com.creativeapptitude.rreskeleton</string>
			<key>CFBundleURLSchemes</key>
			<array>
				<string>rreskeleton</string>
			</array>
		</dict>
	</array>
then I can launch the rreskeleton-app from within the safari-browser with "rreskeleton://".

Unfortunately, I cannot do the same thing with the app that is generated for the iphone as that one is signed...

... but at least it works a little bit.

Any more pointers or a confirmation about the working of this Mac plist "trick" for IOS would be appreciated.

-Frank.

Jellicle
Posts: 453
Joined: Thu Feb 24, 2011 11:07 am

Re: How to customize myapp-Info.plist before building?

Post by Jellicle » Sun Jul 10, 2011 4:15 am

As far as I know you can't change the plist for iOS apps in any way other than that provided by the IDE. You might be able to find and edit that file, but your standalone will fail if you do.

Gerry
14" MacBook Pro
Former LiveCode developer.
Now recovering.

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

Re: How to customize myapp-Info.plist before building?

Post by jacque » Sun Jul 10, 2011 9:11 pm

Oops, Jellicle is right. I'd not noticed we were in the iOS forum. The plist options are all dimmed when compiling for iOS, even if you do have a full license to build for that OS. Sorry about the misinformation.

I think I need to stop reading these forums on my mobile devices. This is the second time I've done that.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

fs42
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 7
Joined: Thu Jun 30, 2011 12:03 am

Re: How to customize myapp-Info.plist before building?

Post by fs42 » Sun Jul 10, 2011 11:11 pm

Thanks for all the suggestions.

I tried one more thing which is the "Copy Files" configuration by specifying a modified Info.plist file to copy, but that doesn't work either because (presumably) the generated Info.plist overwrites the one that I was trying to copy in (instead of the other way around, which would have been desirable from my point of view).

So... I'm giving up right now until RunRev provides that functionality or shows me how to customize that Info.plist.

Would appreciate advice from RunRev...

Regards, Frank.

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

Re: How to customize myapp-Info.plist before building?

Post by jacque » Mon Jul 11, 2011 5:57 pm

It's a good suggestion but RR probably won't see it here. Your best bet is to put in a feature request at the quality control center:
http://quality.runrev.com
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

Post Reply