So I'm building an app that accesses an API that lives on our servers. So obviously there will be a different url for the staging server, vs the live app (that lives int the app store) which will point to the production server api url. What's the best/easiest way to accomplish that in Swift using Xcode 6? And then how do you go about accessing those urls in your controllers/app?
The answer I was looking for was Swift specific...I found it at the following link. It can be accomplished using Swift custom compiler flags and Schemes.
http://dev.iachieved.it/iachievedit/build-configuration-management-with-swift/
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With