Page 1 of 1
How to customize myapp-Info.plist before building?
Posted: Sat Jul 09, 2011 5:58 am
by fs42
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.
Re: How to customize myapp-Info.plist before building?
Posted: Sat Jul 09, 2011 6:41 pm
by jacque
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.
Re: How to customize myapp-Info.plist before building?
Posted: Sun Jul 10, 2011 1:42 am
by fs42
@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.
Re: How to customize myapp-Info.plist before building?
Posted: Sun Jul 10, 2011 4:15 am
by Jellicle
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
Re: How to customize myapp-Info.plist before building?
Posted: Sun Jul 10, 2011 9:11 pm
by jacque
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.
Re: How to customize myapp-Info.plist before building?
Posted: Sun Jul 10, 2011 11:11 pm
by fs42
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.
Re: How to customize myapp-Info.plist before building?
Posted: Mon Jul 11, 2011 5:57 pm
by jacque
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