How do I configure full URLs in xcconfig files

Here's a simple workaround:

WEBSITE_URL = https:/$()/www.example.com

I also could not figure out how to use a double slash in a xcconfig file. But I found a workaround in

  • Re: Double forward slashes in .xcconfig-defined build settings

from the Xcode-users mailing list: In the xcconfigfile, save the URL without the http scheme:

MYURL = stackoverflow.com

In the Info.plist, set the property value to

http://${MYURL}

SLASH=/

API_URL=http:$(SLASH)/endpoint.com

Just declare

SIMPLE_SLASH=/

Then your URL becomes

http:$(SIMPLE_SLASH)/www.stackoverflow.com