Verify if udid is included in your iOS Distribution profile

Many times we find it difficult to figure out why the IPA installation failed when using ad-hoc installation link.  A possible reason may be your device UDID is not included in the distribution profile.  Here’s how to verify if your UDID is included in iOS Distribution profile.

 

  • Generate ad-hoc IPA from Xcode.
  • Cd to IPA file.
  • Run Command: unzip <appname>.ipa.   This will extract the content of ipa to Payload folder
  • cd to Payload.
  • cd to <appname>.app
  • open embedded.mobileprovision in TextEditor.
  • Or Run command:  security cms -D -i ./embedded.mobileprovision
  • Look for <key>ProvisionedDevices</key> or  <key> UDID </key>
  • Your device udid must be listed there.

Managing Color in iOS application

Choosing right color in application make it elegant, but achieving this is not an easy task. For this, we need a support from best designers. In the same time even designer cannot achieve the best layout and design in one shot. He needs to keep trying with the different color theme and figure out the best one. This is the normal process of application design, but reflecting this via coding is even tough task especially when color theme keeps changing.time even designer cannot achieve the best layout and design in one shot. He needs to keep trying with the different color theme and figure out the best one. This is the normal process of application design, but reflecting this via coding is even tough task especially when color theme keeps changing.

Continue reading

All about emum in swift

Enum or Enumerations are a special data types that enable us to group related types together and use them in a type-safe manner. enum in swift is not limited to an integer value as they are in another language, such as C or Java. enum in swift can have a string, character, integer, floating-point and much more type and define its actual value (raw value)

Continue reading

Common Vulnerabilities seen in Most Mobile Application

Use of mobile device and its accessibility is increasing day by day in recent time. Thanks to the technological advancement for this. For the same reason, these devices are now turning into the gateway to leak user’s personal information and confidential credential from hacker all around the world. Devices are often blamed for insecurities, but we mobile devices vulnerabilities are insidious most of the time. So in this article, I will discuss common vulnerabilities in the mobile application that we may be overlooking.

Continue reading

Xcode 8 Tricks

Use Swift 2.3 in Xcode

 


In project’s build settings,  search for legacy swift to find the correct build setting, then switch the setting to YES to opt-in to Swift 2.3 rather than Swift 3 in Xcode 8.

 

Disable OS ACTIVITY log 


  • From Xcode menu open: Product > Scheme > Edit Scheme
  • On your Environment Variables set OS_ACTIVITY_MODE = disable

1-5Rps9Xsu8nRGLz8h4Ronlg

 

Simulate Bad Network Connection in iOS Device and Simulator

While developing an app that requires an internet connection, it is very important to handle use-cases when the connection is slow or non-existent. To figure out when there’s a bad connection via your code, you can use this great Reachability library.

Once Reachability is implement it, it’s pretty easy to test it by simulating a bad connection on your iPhone or iPhone Simulator if you know what tools to use. Here is how you can test a your app on different internet connections using your iPhone and iPhone Simulator:

 

Continue reading

Getting Started with SQLite3

SQLite is a C library that implements an SQL database engine. It is a Relational Database Management System (or RDBMS). Most of the SQL databases work with the client/server model. Take MySQL for an example. To enter and receive data from a MySQL database you need to send a request to the MySQL server, which on reception will provide you with the appropriate response. Contrary to MySQL, SQLite databases are operated directly from the disk. There is no need to create requests to the server.

Continue reading

Mobile Application Development Protocol

Mobile application development protocol is a set of rules and procedure that we need to follow before starting the mobile application project, during the project execution and after the project delivery. We are introducing this protocol for following reasons,

  1. To make our work efficient and fast by following standard programming practice.
  2. Easy to collaborate with multiple team member.
  3. Increase readability of code.
  4. Ensure security / privacy in mobile application
  5. Gathering crash report information to resolve bugs in the application before and after production.
  6. Collecting user behaviour within the app that will help for future enhancement planning.

Continue reading

Get property name as string

Go to get the name of an object property, can be boring using the Objective-C runtime reference.
Fortunately there is a quick way to get it. Assume that you have an object named “appleStore” that has a property named “storeLocation”.
StoreLocation is another object with some properties: “city”, “lat”, “lon”, “street”, “state”, “code”.

Continue reading

Network Reachability Test and HTTP Call with AFNetworking

There are plenty of time when we need to have active internet connection for an mobile application to be used. So it is always good idea to check internet connection before the application get ready for use.

AFNetworking is one of the best iOS library out there for making HTTP request for accessing web services.  Same library is good enough for checking active internet connection. So now let’s dive into how we can constantly monitor the internet connection throughout the application.