Skip to main content

Posts

Featured

Xcode schemes to manage different environments in iOS Swift 5

Flavouring helps us to create different environments for our application during development. Flavouring is very important in order to simplify the code.  We generally have different debug, staging and release urls for our application. Let's say we have different Base URLs : e.g - debug url : http://saurabhdev.com         stagging url: http://saurabhstagging.com         live url : http://saurabhlive.com Now, either we can comment or uncomment the urls according our needs. Or we can setup product flavouring which is the best way to deal with multiple app environments. Below is the step by step guide to add flavouring in the project. Open Xcode, create a new project and name it Flavouring . Now click on project name on the top left and select Project . Then click on Info and click on add (+) button under Configurations . Name it staging . Now we have three configurations setup in our project....

Latest posts

Introduction to core data in iOS Swift 5

Lazy var in Swift

iOS new amazing feature AIRPRINT

Using Clousers in Swift

JSON parsing using GET method in AFNetworking

Get user data from Facebook in iOS

Change UISegmentControl color in iOS

JSON parsing using GET method in iOS

Upload image file to server in iOS.

JSON parsing with POST parameters using AFNetworking 3.0