• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: How do I include a URL in a preprocessed Info.plist?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How do I include a URL in a preprocessed Info.plist?


  • Subject: Re: How do I include a URL in a preprocessed Info.plist?
  • From: "Isaac Wankerl" <email@hidden>
  • Date: Mon, 29 Dec 2008 12:41:19 -0600

On Sat, Dec 27, 2008 at 6:22 AM, Graham Cox <email@hidden> wrote:

> I'm preprocessing my info.plist file so I can automatically update it with
> version number, etc.
>
> I want to include a URL in my plist (to support Sparkle) but Xcode won't
> let me. If I include the URL directly, it causes an error (xml parse error).
> If I define a substitution for it in my plist preprocessing settings, I get
> no error, but only 'http:' is copied, and the rest of the URL is stripped.
>
> How do I do this?
>
> thanks, Graham
>

Here's how I do it...

My build settings have "Expand build settings in info.plist file" and
"Preprocess info.plist file" turned on.

Then in my Info.plist file I have

    <key>SUFeedURL</key>  <string>http:&#47;/www.kerlmax.com/foo</string>

Note that you have to escape one of the slashes in http:// for the parsing
to work.

Isaac
Kerlmax LLC
http://www.kerlmax.com
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >How do I include a URL in a preprocessed Info.plist? (From: Graham Cox <email@hidden>)

  • Prev by Date: Re: Pull Down Toolbar Item
  • Next by Date: Re: Pull Down Toolbar Item
  • Previous by thread: Re: How do I include a URL in a preprocessed Info.plist?
  • Next by thread: Re: How do I include a URL in a preprocessed Info.plist?
  • Index(es):
    • Date
    • Thread