Install same pod for multiple target.

 

Quite often we need to have multiple target for xcode project  to handle development version, UAT version or production version.  But if you are using pod project then you might get error such as “No module found” for specific target and no issue with other target. This generally happens when we misconfigure Podfile.  So here’s how we can install same pod file for multiple target.

 

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