Re: Double forward slashes in .xcconfig-defined build settings
Re: Double forward slashes in .xcconfig-defined build settings
- Subject: Re: Double forward slashes in .xcconfig-defined build settings
- From: Philip Aker <email@hidden>
- Date: Sat, 7 Mar 2009 03:26:34 -0800
On 2009-03-07, at 02:33:55, infinite labs wrote:
Hi there. I have a URL that I need to insert into Info.plist, and this
URL varies depending on the build configuration. I migrated to
xcconfig files for a number of reasons, but I see no way of writing a
URL in a .xcconfig file without the // getting in the way.
I tried quoting the string and using \/\/ (works but the string is not
interpreted, so I get \/\/ there too). I can't find how to do it.
Currently, all my build settings are set through .xcconfig files --
except for this one, that I had to keep in the project. Sigh.
What should I do?
I only use one URL with http:// but what works for me is to save the
path separately so in the .xcconfig it's:
HOMEURL=www.aker.ca/index.html
and in the plist which Xcode will process before placing it in the
final product, it's:
<key>ProductURL</key>
<string>http://${HOMEURL}</string>
Philip Aker
echo email@hidden@nl | tr a-z@. p-za-o.@
Democracy: Two wolves and a sheep voting on lunch.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden