How can I load URL string value from .xcconfig
file in code? I have custom string property in it:
BASE_URL = "https://test.custom.com/api/4.0/"
I need to load this URL in code, so I added in Info.plist
file this:
<key>TSBaseURL</key>
<string>$(BASE_URL)</string>
But when I tried to load this value from code, I get only trimmed value, because Xcode thinks, that //
characters means commentary:
let baseURL = NSBundle.mainBundle().infoDictionary?["TSBaseURL"] as? String
returns
https:
I found this technical note from Apple, but I can't solve my problem with it. So exists any solution, how to load URL string from .xcconfig
file?