Recently I came across this Error in Xcode while I am trying to install my App on the simulator. The error message says that, “This app could not be installed at this time. Failed to load Info.plist from bundle at path …” The screenshot of the error popup is the following. Solution 1. remove use_frameworks! from […]
How to Change Build System in Xcode
Apple has released Xcode New Build System for fast & speedy builds. It’s by default enabled now from Xcode 10+. But sometimes we face some issues while using the new Build System. It also happens that a project is running with the old Legacy Build system but not with the new Build System. In Xcode, we […]
How to Check & Change Swift Version in Xcode
In our existing older projects sometimes we face errors because of the older or newer used Swift Version. Following is the simplest way to check and change the Swift version in Xcode. Check Project Swift Version We can check currently used Swift version in our IOS project by navigating to App -> YOUR_TARGET -> Build […]
Xcode error: using bridging headers with module interfaces is unsupported
I have recently faced this error “using bridging headers with module interfaces is unsupported” while building my project in Xcode 11.5. Here I am going to share the solution as well as the root cause of the error. I faced this error while I shifted my project from the Old build system to the new […]
How to Show Loading Animating Dots in Swift – IOS
In this Swift tutorial, I am going to share a simple method to show loading animating dots in Swift IOS. Using the following function you can show animating dots in a simple UIImageView. The following screenshot shows the animation that we are going to show in a UIImageView. Method to Show Loading Animating Dots in […]
How to Fix “Class ViewController has no initializers” Error in IOS Xcode
While working in Swift, we usually see this error “Class ViewController has no initializers”. It’s not specifically for ViewController rather it can be related to any of our class. It’s a compile-time error we usually face in Xcode. In this article, we will discuss the reason for this error and then its solution. Reason for […]
Find Distance between 2 locations in JAVA & SWIFT
Sometimes we have to calculate the distance between 2 locations when we have coordinates latitude and longitude for those locations. This article will discuss how you can calculate a straight line distance between 2 locations 2 programming languages, JAVA & Swift. 1. Code to Find Distance in JAVA In JAVA we don’t have any builtin […]
Get Current Location in Swift IOS
Apple provides the CoreLocation Framework to fetch the user’s current location through GPS. In the following article its explained how to get current location in Swift in the form of Latitude & Longitude. Just copy the following code in your ViewController, rest of the work will be done by it. The working of the code […]
Save & Load Image From Documents Directory in Swift
It’s a common requirement in Apps that we need to save images in the phone’s storage. For example, you download an image from your server and want to save it for future use. In IOS you can use Documents Directory for that purpose. Documents Directory is a slice of storage dedicated to each App where […]
Method to Convert Hexadecimal Color Code into UIColor Swift 5
It’s a common requirement that we have to convert HTML hexadecimal color code into UIColor in swift. Following is a utility method that you can use for that purpose. This code is written in swift 5. In this method, you need to pass Hex String as a parameter and it will return the UIColor object […]