Create an iPA using shell Script from XCode Archive

Creating shortcuts to iOS Simulators with XCode 6 onwards 3

Once you’ve generated XCode archive (make sure you are using valid provisioning profile and code signing identities), you can use following command to generate iPA file. xcodebuild -exportArchive -archivePath $projectname.xcarchive -exportPath $projectname -exportFormat ipa -exportProvisioningProfile “Provisioning Profile Name” xcodebuild – … Continue reading

iOS7 OTA Distrubution over HTTPS

Step 1. Archive your project (Make sure you’ve archived project with distribution certificates & provisioning profiles) Step 2. Click on ‘Distribute’ button. Step 3. Choose ‘Save for Ad-hoc Distribution’. Step 4. Choose appropriate provisioning profile for distribution. Step 5. Make … Continue reading

XCode5 Target capabilities Settings under Project Settings

In newer XCode5, you would find a quick short-cut to enable/disable target capabilities like iCloud, Game center, Passbook, Maps, In-App Purchases, key-chain sharing, Inter-app audio, Background modes, Data protection under Project-target settings directly as illustrated in following image.

Custom Range Slider Component to Pick Range


In this tutorial, I will describe the two sliders were used to configure the minimum and maximum parameters of a setting. In most of the cases, Application may need to select data between some values for that extended features use and … Continue reading

Detect Device Version – iPhone 2G, 3G, 3Gs, 4, 4s, iPad 1, iPad2, iPad3

sugartin iphones detect device by coding

Sometimes, Your application might need to check which device is being used by the user. For example – My App needs to track that – iPhone3G users are 120, iPhone3Gs users are 340 & iPad2 users are 100. So, I … Continue reading

Accessing Application Version into your application

sugartin accessing app version

  As illustrated in image above, Assume that you have to access & display the Application version name. Or While making a web-service call, you have to pass the version of the application, so that server can know, which version … Continue reading

Locally Store/Retrive the data into NSUserDefaults


NSUserDefaults class, you can save settings and properties related to application or user data.I will be showing you how you can save and retrieve different types of data using the NSUserDefaults object. I will be showing you how you can save and retrieve … Continue reading